# API for In-Store Channels(via Merchant POS/Terminal)

## :white\_check\_mark: 场景介绍 SCENE INTRODUCTION

### :digit\_one: 使用场景一（用户扫商家的收款二维码）

**SCENE ONE（Customer Scan the QR code）**

* **在 POS 机上点击收款，选择 OTTPAY 服务**

**Press pay button on POS and choose OTTPAY channel**

![](https://1288750261-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpayment-api%2F-M6kdJKEalkr1yZBDEyM%2F-M6keABDBgneF7rE0VNe%2F0.jpeg?generation=1588880526691649\&alt=media)

* **生成付款二维码**

**Generate order QR Code**

![](https://1288750261-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpayment-api%2F-M6kdJKEalkr1yZBDEyM%2F-M6keABEEzPI1HhyGYG7%2F1.jpeg?generation=1588880526735365\&alt=media)

* **手机扫码完成付款**

**Customer Scan QR Code with their payment App to pay**

![](https://1288750261-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpayment-api%2F-M6kdJKEalkr1yZBDEyM%2F-M6keABFwaVGyCNM1Ggo%2F2.jpeg?generation=1588880526712811\&alt=media)

### :digit\_two: **使用场景二（商家使用扫码设备扫描用户的付款二维码）**

**SCENE TWO（Merchant use scanner to Scan the customers’ QR code）**

#### :asterisk\_symbol: **打开微信/支付宝客户端付款码，使用扫码枪扫码**

**Customer show their payment QR Code in their apps and merchant use a scanner to scan the QR Code**

![](https://1288750261-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpayment-api%2F-M6kdJKEalkr1yZBDEyM%2F-M6keABG3d2MTgSCG0RV%2F3.jpeg?generation=1588880526665562\&alt=media)

#### :asterisk\_symbol: **调用 OTTPAY 接口完成收款**

**Call OTTPAY API to finish payment**

![](https://1288750261-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpayment-api%2F-M6kdJKEalkr1yZBDEyM%2F-M6keABHauU1M5IzoaIr%2F4.jpeg?generation=1588880526664654\&alt=media)


---

# 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://docs.ottpay.com/payment-api/retail-api.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.
