# Check Payment Status

Track the real-time status of your payment with ease. Whether it's pending, successful, or failed, this page gives you instant visibility into where your transaction stands. No more guessing—just clear, up-to-date information to keep you in control.

## Endpoint

### Sandbox

`GET https://connect.uat.paylaterapp.com/api/paylater/merchant-portal/v2/web-checkout/status`&#x20;

### Production

`GET https://connect.paylaterapp.com/api/paylater/merchant-portal/v2/web-checkout/status`&#x20;

## Headers

* `Authorization`: Bearer {{bearer\_token}} Your Access Token (Required)

## Query Parameters

| Parameter | Type   | Required | Description     |
| --------- | ------ | -------- | --------------- |
| order\_id | String | ✅        | Unique order ID |

## Success Response (Statuses)

```
{
    "message": "Order not initiated",
    "status": 0
}

{
  "payLaterOrderId": "PL1744792493935483",
  "message": "pending",
  "merchantReference": "000072152",
  "status": 1
}

{
  "payLaterOrderId": "PL1744792493935483",
  "message": "success",
  "merchantReference": "000072152",
  "status": 2
}

{
  "payLaterOrderId": "PL1744792493935483",
  "message": "failed",
  "merchantReference": "000072152",
  "status": 3
}
```

## Error Response

```
{
  "error": "Order ID is required"
}
```

### **Status Codes:**

* `0` = customer didn't proceed
* `1` = pending
* `2` = success
* `3` = failed


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://paylater.gitbook.io/paylater-docs/getting-started/quickstart/check-payment-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
