---
title: "GET /api.php"
method: GET
path: "/api.php"
tags: ["payment"]
---

# GET /api.php

`GET /api.php`

## Query parameters

- `act` string
- `key` string, required
- `out_trade_no` string, required
- `pid` string, required

## Response `200`

OK

- PaymentQueryMerchantOrderResponse
  - `addtime` string
  - `code` integer
  - `endtime` string
  - `money` string
  - `msg` string
  - `name` string
  - `out_trade_no` string
  - `pid` string
  - `status` integer
  - `trade_no` string
  - `type` string

## Changes

- **2026-01-04** `d2212badf6c5` — 1 breaking, 1 warning
  - the `query` request parameter `out_trade_no` became required
  - deleted the `query` request parameter `trade_no`
- **2026-01-04** `7592bb2cf123` — 1 breaking, 1 info
  - added the new required `query` request parameter `trade_no`
  - the `query` request parameter `out_trade_no` became optional
- **2026-01-03** `39f8f0e3886b` — 1 breaking, 1 warning
  - the `query` request parameter `out_trade_no` became required
  - deleted the `query` request parameter `trade_no`
- **2025-12-08** `71d857447231` — 1 info
  - endpoint added
- **2025-11-28** `aad9e35a109e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/linux-do/apis/linux-do-credit/changes/api.php/get.md)

---

[API](https://skmtc.dev/linux-do/apis/linux-do-credit.md) · [All operations](https://skmtc.dev/linux-do/apis/linux-do-credit/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/linux-do/linux-do-credit/revisions/c7aa35359176/schema)
