POST
charges
/
pse
Crear un link de pago (PSE)
curl --request POST \
  --url https://api.onepay.la/v1/charges/pse \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-idempotency: <x-idempotency>' \
  --data '{
  "customer_id": "<string>",
  "amount": 123,
  "bank_id": "<string>",
  "external_id": "<string>",
  "redirect_url": "<string>"
}'
{
  "id": "9e184fda-62bb-477b-9020-fa59f44f2b99",
  "url": "https://s.onepay.la/short/lxNKQp2je8"
}

Headers

x-idempotency
string
required
Token único para garantizar la idempotencia de la petición

Body

customer_id
string
required
Identificador único del cliente.
amount
number
required
Monto que vas a cobrar
bank_id
string
required
Identificador único del banco.
external_id
string
Identificador único del pago.
redirect_url
string
URL de retorno.
{
  "id": "9e184fda-62bb-477b-9020-fa59f44f2b99",
  "url": "https://s.onepay.la/short/lxNKQp2je8"
}