1. Payment Links
Pasarela Payment MyPay
  • Quick Start
  • Instalacion
  • Payments
    • Payments
      POST
    • Detalles de Transaccion
      POST
    • Extraccion Metadatos del BIN
      GET
    • Paginacion y Filtro
      GET
  • Payment Links
    • Crear payment link
      POST
    • Listar payment links
      GET
    • Estadísticas
      GET
    • Obtener payment link por ID
      GET
    • Cancelar payment link
      POST
    • Obtener payment link por token
      GET
  • Short URL
    • Redirect URL corta
      GET
  • Checkout
    • Página de checkout
      GET
    • Procesar pago
      POST
    • Estado del payment link
      GET
  1. Payment Links

Crear payment link

Entorno desarrollo
https://sandbox.mypaygateway.io
Entorno desarrollo
https://sandbox.mypaygateway.io
POST
/api/payment-links
Payment Links
Crea un nuevo payment link activo.
Autenticación: X-Api-Key.
Si incluís customerEmail, el cliente recibe automáticamente un email
con el link de pago.

Solicitud

Autorización
API Key
Agregar parámetro en header
X-Api-Key
Ejemplo:
X-Api-Key: ********************
or
Parámetros del Body application/jsonRequerido

Ejemplos

Respuestas

🟢201
application/json
Payment link creado.
Body

🟠400
🟠401
🟠403
Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.mypaygateway.io/api/payment-links' \
--header 'X-Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 150,
    "description": "Servicio de consultoría - Mayo 2026",
    "reference": "ORD-2026-0042",
    "customerEmail": "cliente@ejemplo.com",
    "customerName": "Juan García",
    "successUrl": "https://mitienda.com/gracias",
    "cancelUrl": "https://mitienda.com/carrito",
    "expirationHours": 48,
    "webhookUrl": "https://mitienda.com/webhooks/mypay",
    "logoUrl": "https://mitienda.com/assets/logo.png",
    "brandingDescription": "Pago seguro procesado para Mi Tienda."
}'
Respuesta Ejemplo de Respuesta
201 - Success
{
    "paymentLinkId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "url": "https://linkpago.mypaygateway.io/pay/abc123XYZtoken456",
    "shortUrl": "https://linkpago.mypaygateway.io/p/aB3dEf",
    "token": "abc123XYZtoken456",
    "amount": 150,
    "currency": "USD",
    "expiresAt": "2026-05-10T18:30:00+00:00",
    "status": "Active",
    "isSandbox": false
}
Modificado en 2026-05-08 22:57:09
Anterior
Paginacion y Filtro
Siguiente
Listar payment links
Built with