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

Cancelar payment link

Entorno desarrollo
https://sandbox.mypaygateway.io
Entorno desarrollo
https://sandbox.mypaygateway.io
POST
/api/payment-links/{paymentLinkId}/cancel
Payment Links
Cancela un payment link activo. La cancelación es irreversible.
Solo se puede cancelar un link en estado Active.

Solicitud

Autorización
API Key
Agregar parámetro en header
X-Api-Key
Ejemplo:
X-Api-Key: ********************
or
Parámetros de ruta

Respuestas

🟢204
Cancelado exitosamente.
Esta respuesta no tiene un body.
🟠400
🟠401
🟠404
Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.mypaygateway.io/api/payment-links/3fa85f64-5717-4562-b3fc-2c963f66afa6/cancel' \
--header 'X-Api-Key: <api-key>'
Respuesta Ejemplo de Respuesta
400 - Success
{
    "error": "Cannot cancel payment link with status: Paid"
}
Modificado en 2026-05-08 22:57:00
Anterior
Obtener payment link por ID
Siguiente
Obtener payment link por token
Built with