GET
/
charges
/
{charge_id}
/
intents
Listar intentos de un cargo
curl --request GET \
  --url https://api.onepay.la/v1/charges/{charge_id}/intents \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "9e028bd9-755f-4069-8742-7727d0dc4047",
    "status": "succeeded",
    "currency": "COP",
    "amount": 10000,
    "amount_label": "$10.000",
    "payment_method_type": "CARD",
    "payment_method_id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
    "network_id": "ntw_987654321",
    "transaction_id": "txn_abc123xyz",
    "remarks": {
      "code": "approved",
      "message": "Pago aprobado"
    },
    "is_test": true,
    "created_at": "2025-01-20T01:48:54.000000Z",
    "paid_at": "2025-01-20T01:49:10.000000Z"
  },
  {
    "id": "8f139e2a-6b5c-4d7e-9f01-23a456789abc",
    "status": "failed",
    "currency": "COP",
    "amount": 10000,
    "amount_label": "$10.000",
    "payment_method_type": "PSE",
    "payment_method_id": "8f139e2a-6b5c-4d7e-9f01-23a456789abc",
    "network_id": null,
    "transaction_id": null,
    "remarks": {
      "code": "declined",
      "message": "Fondos insuficientes"
    },
    "is_test": true,
    "created_at": "2025-01-20T01:45:22.000000Z",
    "paid_at": null
  }
]
charge_id
string
required
ID único del cargo del cual se desean consultar los intents
[
  {
    "id": "9e028bd9-755f-4069-8742-7727d0dc4047",
    "status": "succeeded",
    "currency": "COP",
    "amount": 10000,
    "amount_label": "$10.000",
    "payment_method_type": "CARD",
    "payment_method_id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
    "network_id": "ntw_987654321",
    "transaction_id": "txn_abc123xyz",
    "remarks": {
      "code": "approved",
      "message": "Pago aprobado"
    },
    "is_test": true,
    "created_at": "2025-01-20T01:48:54.000000Z",
    "paid_at": "2025-01-20T01:49:10.000000Z"
  },
  {
    "id": "8f139e2a-6b5c-4d7e-9f01-23a456789abc",
    "status": "failed",
    "currency": "COP",
    "amount": 10000,
    "amount_label": "$10.000",
    "payment_method_type": "PSE",
    "payment_method_id": "8f139e2a-6b5c-4d7e-9f01-23a456789abc",
    "network_id": null,
    "transaction_id": null,
    "remarks": {
      "code": "declined",
      "message": "Fondos insuficientes"
    },
    "is_test": true,
    "created_at": "2025-01-20T01:45:22.000000Z",
    "paid_at": null
  }
]