> For the complete documentation index, see [llms.txt](https://docs.pagsmile.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagsmile.com/reference/payin/submit-a-payin/india/qrcode.md).

# QRCode

## Payin by QRCode

<mark style="color:green;">`POST`</mark> `https://gateway-test.pagsmile.com/trade/pay`

This endpoint allows you to submit a payin by QRCode in India.

***

## Request Body

| Parameter       | Type   | Required | Constraints                               | Description                                       |
| --------------- | ------ | -------- | ----------------------------------------- | ------------------------------------------------- |
| app\_id         | string | Yes      | Max length: 32 characters                 | The merchant application ID assigned by Pagsmile. |
| out\_trade\_no  | string | Yes      | Max length: 64 characters; must be unique | The merchant-side order ID.                       |
| method          | string | Yes      | Fixed value: QRCode                       | Payment method.                                   |
| order\_currency | string | Yes      | Fixed value: INR                          | Payment currency.                                 |
| order\_amount   | string | Yes      | Range: 1 - 100000                         | Payment amount.                                   |
| subject         | string | Yes      | Max length: 128 characters                | Order title or product name.                      |
| content         | string | Yes      | Max length: 255 characters                | Order description.                                |
| timestamp       | string | Yes      | Format: yyyy-MM-dd HH:mm:ss               | Request timestamp.                                |
| notify\_url     | string | Yes      | Valid URL                                 | Callback URL for payment result notification.     |
| buyer\_id       | string | Yes      | Merchant-defined unique ID                | The unique customer ID in the merchant system.    |
| customer.name   | string | Yes      | -                                         | Customer name.                                    |
| customer.email  | string | Yes      | Valid email                               | Customer email address.                           |
| customer.phone  | string | Yes      | Valid phone number                        | Customer phone number.                            |

***

## Request Sample

```json
{
  "app_id": "162************43",
  "out_trade_no": "out_trade_no_627********33",
  "method": "QRCode",
  "order_currency": "INR",
  "order_amount": "10",
  "subject": "test",
  "content": "test",
  "timestamp": "2026-06-15 18:50:42",
  "notify_url": "http://demo.callback/success",
  "buyer_id": "test_user",
  "customer": {
    "name": "Test",
    "email": "test@example.com",
    "phone": "919123456789"
  }
}
```

***

## Response

```json
{
  "code": "10000",
  "msg": "Success",
  "prepay_id": "cmsvd********7B9F47",
  "trade_no": "2026********249",
  "out_trade_no": "out_trade_no_627********833",
  "web_url": "",
  "pay_url": "upi://pay?pa=smileOne********",
  "qr_code": "upi://pay?pa=smileOne********",
  "trade_status": "PROCESSING"
}
```
