Skip to content
EvePayDocs

API v1Developer documentation

Create a charge

POST https://api.evetev.com/v1/pagos

What you send

Field Type Required? What for
merchantId uuid yes Your merchant. It comes from the id in GET /v1/merchants/me and does not change.
monto integer yes The amount, an integer with no decimals. In COP these are PESOS: $ 89.000 is sent as 89000, not as 8900000. If your code or an old example says montoMinor, that is this field under its previous name.
moneda "COP" yes COP only. Any other value is rejected with 400.
referencia text (1–120) yes Your own identifier for the order. It is what you will reconcile against on your side.
descripcion text (max. 255) no What the buyer sees on the payment screen, so they recognise what they are paying for.
urlRetorno https url no Where this buyer returns to. It has to belong to your registered site or to a subdomain of it. If you do not send it, the one you registered in Settings is used.
pagador object no Details of the person paying, to charge without them leaving your site. If you do not send it —the normal case— the charge returns the hosted payment page.

Colombian pesos have no cents. $ 89.000 is sent as 89000, not as 8900000. It is the mistake that moves the most money to the wrong place when integrating.

The idempotency key

The Idempotency-Key header is mandatory. If your server retries because the network dropped, with the same key we return the charge that already existed instead of creating another. Use something stable and specific to the order — the order number works.

If you reuse the same key with a different body, it answers 409: that is the signal that two different orders are sharing a key.

The key never expires: it is remembered indefinitely. The consequence shows up late: if your order numbering ever starts over, those numbers run into the 409 above. A key carrying the year, or the order's internal id, does not have that problem.

Taking each buyer back to their order

urlRetorno is optional. If you do not send it, the buyer returns to the page you registered in Settings. If you do send it, you can take them to their own order — and it has to belong to your own site.

With your site registered as https://tutienda.co:

urlRetorno Accepted?
https://tutienda.co/pedido/4417/gracias Yes
https://pagos.tutienda.co/gracias Yes, it is your subdomain
http://tutienda.co/gracias No: it has to be https
https://otro-sitio.co/gracias No: it is not your domain

What we return

{
  "id": "44444444-4444-4444-8444-444444444444",
  "merchantId": "33333333-3333-4333-8333-333333333333",
  "monto": 89000,
  "moneda": "COP",
  "referencia": "pedido-4417",
  "estado": "pendiente",
  "checkoutUrl": "https://...",
  "creadoEn": "2026-10-04T00:07:51.000Z"
}

Store the id against your order: it is what you will recognise the notice by when it arrives. Then redirect the buyer to checkoutUrl.

There is no gateway in the response, and that is on purpose. Your code never names who we process with: that way we can change provider, or add another, without you touching a line.

What your customer can pay with

Today PSE only, and you do not choose the method when creating the charge: the buyer lands on the payment screen and pays. What can be paid with, and how each method works, is in payment methods.

The pagador object

It is for asking them for their bank and their details on your form, so they go straight to their bank without passing through the payment screen. It has been enabled since November 2026; before that the field was accepted and ignored. If you send it, send it complete: anything missing a field is rejected by the gateway, not by us.

Field Type Required? What for
nombre text (3–200) yes Full name of the person paying, or the company name if a company is paying. The gateway requires it for PSE.
tipoDocumento CC | CE | NIT | PA yes Document type.
documento text (4–20) yes Document number.
correo email yes Where the receipt is sent.
bancoCodigo text yes The chosen bank, from GET /v1/pagos/bancos.
tipoPersona natural | juridica yes Whether the payer is a person or a company.
telefono text (7–10) yes The payer's mobile number, no country code: ten digits.
direccion text (3–64) yes The payer's address.

It only covers PSE. For card it does not exist and will not exist like this: a card number cannot pass through your server.

States of a charge

State What it means
creado, pendiente Nobody has paid yet.
aprobado The bank approved. This is when you ship.
fallido The payment did not complete.
conciliado Beyond the payment, the money already matched the settlement.
reembolsado It was returned to the payer.

You can query it whenever you want with GET /v1/pagos/:id, but there is no need to keep asking: that is what the notice is for.

This is not the only state a charge has. The money on its way to your account has its own, and they do not advance together: a charge that is aprobado does not mean you already have the money. It is explained in the two states.