# Get Transaction by Order ID

Retrieve full transaction details using a specific Order ID. This endpoint provides real-time insights into the payment status, shopper info, transaction amount, and timestamps—ideal for quick lookups, reconciliations, or support queries.

## Endpoint

### Sandbox

`GET https://connect.uat.paylaterapp.com/api/paylater/merchant-portal/web-checkout/transactions/{order_id}?merchantId={{merchantID}}`&#x20;

### Production

`GET https://connect.paylaterapp.com/api/paylater/merchant-portal/web-checkout/transactions/{order_id}?merchantId={{merchantID}}`&#x20;

## Headers

* `x-api-key`: Your API key (Required)

## Query Parameters

| merchantId | String | ✅ | Your merchant ID         |
| ---------- | ------ | - | ------------------------ |
| order\_id  | String | ✅ | Merchant Unique order ID |

## Success Response

```
{
  "id": 10129,
  "customer": {
    "fullName": "JOHN SMITH",
    "mobileNumber": "97466955189",
    "email": "john@test.com",
    "allowedSpendingLimit": "25000.0"
  },
  "loan": {
    "emi": 154.75,
    "grantedAmount": 619.00,
    "installmentAmount": 154.75,
    "noOfTerms": 4
  },
  "orderStatus": {
    "message": "pending",
    "status": 1
  }
}
```

## Error Responses

```
{
  "message": "Order not initiated"
}

{
  "message": "Order ID not found"
}
```


---

# 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/get-transaction-by-order-id.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.
