# Query Card Present Transaction Status

After initiating a payment or capture, use this guide to retrieve the current state of any Card Present (CP) transaction. This is the primary mechanism for polling after a QR Code scan, confirming a successful capture, or troubleshooting a transaction that did not return a clear response in your physical hardware integration.

## Requirements

Before following the steps, you need to:

- **API Credentials**: Contact the Integration Support team to get your `client_id` and `client_secret`.
- **Bearer Token**: Generate your token with your credentials using the [Authentication endpoint](https://docs.globalgetnet.com/en/products/online-payments/regional-api/swagger#tag/authentication).
- **Payment ID**: You must have the UUID returned from the original transaction (authorization, capture, or QR code generation).

## Transaction Status Process

The Getnet Regional API provides two lookup variants under the **Payment Record Management** structure.

### Retrieve by Payment ID

This is the standard way to get the full transaction record, including its status and history of operations. Call the [Get Transaction endpoint](https://docs.globalgetnet.com/en/products/online-payments/regional-api/swagger#tag/payment-record-management/get/dpm/hub-payment-info/v1/payments/info/{payment_id}) with the `payment_id`.

```bash
curl --request GET \
  --url 'https://api.pre.globalgetnet.com/dpm/hub-payment-info/v1/payments/info/8719d0c4-2c3f-4360-abd9-8daf3834fe1f' \
  --header 'Authorization: Bearer <ACCESS_TOKEN>'
```

#### Example Response

```json
{
  "payment_id": "8719d0c4-2c3f-4360-abd9-8daf3834fe1f",
  "order_id": "ORDER-101",
  "status": "CAPTURED",
  "payment": {
    "amount": 30960,
    "currency": "CLP",
    "payment_method": "DIRECT_CREDIT",
    "brand": "VISA",
    "authorization_code": "204050",
    "authorized_at": "2026-02-19T14:30:00.000Z"
  },
  "records": [
    {
      "type": "response",
      "content": {
        "status": "AUTHORIZED",
        "payment_id": "8719d0c4-2c3f-4360-abd9-8daf3834fe1f",
        "authorized_at": "2026-02-19T14:30:00.000Z"
      }
    },
    {
      "type": "response",
      "content": {
        "status": "CAPTURED",
        "captured_at": "2026-02-19T14:45:00.000Z"
      }
    }
  ]
}
```

### Retrieve by Idempotency Key (Optional)

Use this variant to confirm the result of a specific operation linked to a payment, such as a retry on a capture request. Call the [Get by Idempotency Key endpoint](https://docs.globalgetnet.com/en/products/online-payments/regional-api/swagger#tag/payment-record-management/get/dpm/hub-payment-info/v1/payments/info/{payment_id}/{idempotency_key}).

```bash
curl --request GET \
  --url 'https://api.pre.globalgetnet.com/dpm/hub-payment-info/v1/payments/info/8719d0c4-2c3f-4360-abd9-8daf3834fe1f/capture-key-001' \
  --header 'Authorization: Bearer <ACCESS_TOKEN>'
```

## Status Reference

| Status | Meaning | Next Action |
| --- | --- | --- |
| `APPROVED` | Authorization hold placed (two-step) or QR code ready. | Proceed to capture or poll for final payment. |
| `CAPTURED` | Sale finalized and funds settled. | No further action required. |
| `DENIED` | Declined by issuer or system failure. | Notify the customer and retry if applicable. |
| `ERROR` | Unexpected hardware or network error. | Contact Support with the `payment_id`. |

## Next Steps

- **[Cancel a Payment](/en/global-api/sep-card-present/payment-guides-cp/cancel-a-payment-cp)**: Reverse an authorized transaction using the `payment_id`.
- **[QR Code Payments](/en/global-api/sep-card-present/payment-guides-cp/qr-code-cp)**: Poll this endpoint to confirm funds were transferred after a scan.
- **[Single-Step Payments](/en/global-api/sep-card-present/payment-guides-cp/single-step-payment-cp)**: Process standard sales directly at the terminal.