Skip to main content

Posibles eventos

Eventos dosponibles
  • charge.created
  • charge.processing
  • charge.paid
  • charge.failed
  • charge.refunded
  • charge.disputed

Estados de cobros

  • created
  • processing
  • paid
  • failed
  • refunded
  • disputed

Ejemplo

200
{
  "charge": {
    "id": "9bf2bc44-28d4-4693-9896-7fc1fe1f5b65",
    "description": "Pago factura 001-2024",
    "amount": 63040,
    "amount_label": "$63.040",
    "currency": "COP",
    "status": "paid",
    "payment_method_type": "CreditCard",
    "payment_method_id": "3f8b7a21-1d4a-4d2e-8f1a-17e2f1e6b9ab",
    "source": {
      "type": "Payment",
      "id": "12e34567-89ab-4cde-f012-3456789abcde"
    },
    "created_at": "2024-10-20T12:00:00.000000Z",
    "paid_at": "2024-10-20T12:10:10.000000Z",
    "remarks": null,
    "is_test": true,
    "network_id": "prov-123",
    "external_id": "EXT-12345",
    "method": {
      "id": "3f8b7a21-1d4a-4d2e-8f1a-17e2f1e6b9ab",
      "brand": "visa",
      "label": "Personal",
      "last_four": "4242",
      "expiration_date": "12/2028",
      "customer_id": "1c2d3e4f-5678-90ab-cdef-111213141516",
      "created_at": "2024-09-15T10:20:30.000000Z",
      "country": "CO"
    },
    "customer": {
      "id": "4e5f6a7b-8c9d-0e1f-2345-6789abcdef01",
      "first_name": "Juan",
      "last_name": "Pérez",
      "email": "juan.perez@example.com",
      "phone": "+573001112233",
      "document_type": "CC",
      "document_number": "1234567890",
      "created_at": "2024-09-10T09:00:00.000000Z",
      "is_test": true
    }
  },
  "event":{
      "type":"charge.created",
      "timestamp":1689262934,
      "environment":"live|test"
   }
}