# Endpoints

Base: `https://api.evetev.com/v1` · Authentication: `Authorization: Bearer evpk_…`

To charge in a store, `POST /v1/pagos` and the ones under «Notices» are enough.

## Charges

| Endpoint                        | What it does                                                |
| ------------------------------- | ----------------------------------------------------------- |
| `POST /v1/pagos`                | Creates a charge. Requires the `Idempotency-Key` header.    |
| `GET /v1/pagos`                 | Your charges, paginated.                                    |
| `GET /v1/pagos/:id`             | One charge and its state.                                   |
| `GET /v1/pagos/:id/liquidacion` | [What you keep](/en/settlement) from that charge, and when. |
| `GET /v1/pagos/stats`           | Totals by state and period.                                 |
| `GET /v1/pagos/bancos`          | PSE banks, for your own form.                               |
| `POST /v1/pagos/:id/simular`    | Completes a test charge. [Sandbox only](/en/testing).       |

## Your merchant

| Endpoint                            | What it does                                            |
| ----------------------------------- | ------------------------------------------------------- |
| `GET /v1/merchants/me`              | Your details. This is where `merchantId` comes from.    |
| `GET /v1/merchants/me/registro-web` | Your site and your return page.                         |
| `PUT /v1/merchants/me/registro-web` | Changes them. **From the portal only**, with a session. |

## Notices

| Endpoint                    | What it does                                        |
| --------------------------- | --------------------------------------------------- |
| `POST /v1/webhook-endpoint` | Registers your endpoint. **From the portal only.**  |
| `GET /v1/webhook-endpoint`  | The registered endpoint.                            |
| `PUT /v1/webhook-endpoint`  | Changes the URL or deactivates it. **Portal only.** |

## Who gets into your portal

**Not managed over the API.** Inviting somebody, changing their role or removing their access is done in the portal, under Settings, with a person's session. Your key is not for that.

Until 5-Oct-2026 this page listed four endpoints under `/v1/personas` for it. They do not exist: they answer `404`.

| Role                | Can                                                                       |
| ------------------- | ------------------------------------------------------------------------- |
| `admin_comercio`    | Everything above.                                                         |
| `consulta_comercio` | Only the `GET`s. Creates no charges, changes no site, touches no webhook. |

> **Your key always acts as `admin_comercio`, and even so it does not reach everything.** There are no read-only keys: whoever holds it can create charges and read everything. What it **cannot** do is change your registered site or your notice endpoint: those three require a portal session and answer `403` with a key. The why is in [security](/en/security).

## Headers

| Header                           | Where                | Required |
| -------------------------------- | -------------------- | -------- |
| `Authorization: Bearer evpk_…`   | All                  | Yes      |
| `Idempotency-Key`                | `POST /v1/pagos`     | Yes      |
| `Content-Type: application/json` | The ones with a body | Yes      |

## Formats

- Amounts: integers, no decimals. In COP, pesos.
- Dates: ISO 8601 in UTC (`2026-10-04T15:12:03.000Z`).
- Identifiers: UUID v4.

## Also

- [OpenAPI](/openapi.json) — with the schemas of every response and of the errors,
  not just the paths. Its descriptions are in Spanish, like the field names.
- EvePay's internal operation endpoints do not appear here, and a merchant key does not reach them.
