GET
/
charges
/
{charge_id}
curl --request GET \
  --url https://api.onepay.la/v1/charges/{charge_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "9e028bd9-755f-4069-8742-7727d0dc4047",
  "title": "recusandae placeat et",
  "amount": 1000,
  "amount_label": "$1.000",
  "source": "charge",
  "status": "pending",
  "currency": "COP",
  "payment_method_type": "CreditCard",
  "payment_method_id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
  "created_at": "2025-01-20T01:48:54.000000Z",
  "paid_at": null,
  "remarks": null,
  "is_test": true,
  "method": {
    "id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
    "brand": "Visa",
    "label": "Visa ·3158",
    "last_four": "3158",
    "expiration_date": "1/2027",
    "customer_id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
    "created_at": "2025-01-20T01:48:54.000000Z",
    "country": "CO"
  },
  "customer": {
    "id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
    "first_name": "Mathew",
    "last_name": "Dicki",
    "email": "",
    "phone": "+14586224518",
    "document_type": "CC",
    "document_number": "96600",
    "created_at": "2025-01-20T01:48:54.000000Z",
    "is_test": false
  }
}
charge_id
string
required

ID único del cargo que deseas consultar

{
  "id": "9e028bd9-755f-4069-8742-7727d0dc4047",
  "title": "recusandae placeat et",
  "amount": 1000,
  "amount_label": "$1.000",
  "source": "charge",
  "status": "pending",
  "currency": "COP",
  "payment_method_type": "CreditCard",
  "payment_method_id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
  "created_at": "2025-01-20T01:48:54.000000Z",
  "paid_at": null,
  "remarks": null,
  "is_test": true,
  "method": {
    "id": "9e028bd9-74b0-4eda-a121-ab3d59909ce7",
    "brand": "Visa",
    "label": "Visa ·3158",
    "last_four": "3158",
    "expiration_date": "1/2027",
    "customer_id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
    "created_at": "2025-01-20T01:48:54.000000Z",
    "country": "CO"
  },
  "customer": {
    "id": "9e028bd9-7387-4f2b-83f0-c820931b53e5",
    "first_name": "Mathew",
    "last_name": "Dicki",
    "email": "",
    "phone": "+14586224518",
    "document_type": "CC",
    "document_number": "96600",
    "created_at": "2025-01-20T01:48:54.000000Z",
    "is_test": false
  }
}