> For the complete documentation index, see [llms.txt](https://asiabill.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://asiabill.gitbook.io/docs/ji-cheng-sdk/php-sdk/openapi.md).

# OpenApi

### 批量交易查询

```php
$asiabill->openapi()->request('transactions',array(
    'query' => array(
        'endTime' => '2022-03-26T00:00:00',
        'startTime' => '2022-03-24T00:00:00',
    )
));
```

### 订单信息查询

```php
$asiabill->openapi()->request('orderInfo',array(
    'path' => array(
        'tradeNo' => '2021092810011380477264',
    )
));
```

### 退款申请

```php
$asiabill->openapi()->request('orderInfo',array(
    'body' => array(
        'merTrackNo' => '454515154',
        'refundAmount' => '10.22',
        'refundReason' => '退款',
        'refundType' => '1',
        'remark' => '',
        'tradeNo' = '2021092810011380477264'
    ) 
));
```

### 上传物流信息

```php
$asiabill->openapi()->request('orderInfo',array(
    'body' => array(
        'tradeNo' = '2021092810011380477264'，
        'lcCode' => 'TWTH',
        'trackingNo' => '1223212312',
        'trackingWeb' => 'https://abc.com'
    ) 
));
```
