Skip to content

China Payin

Create payin

POST /api/v1/merchant/payin/create

FieldRequiredNotes
merchantOrderNoyesUnique per merchant
countryCodeyesCN
currencyyesCNY
amountyes> 0
notifyUrlnoWebhook URL
metadatanoPayer info, biz ref

Response includes orderNo (PI…), feeAmount, netAmount, status (created initially).

Query payin

GET /api/v1/merchant/payin/query?orderNo= or ?merchantOrderNo=

Webhook (completed)

Full checklist: Webhook guide.

POST JSON with signed headers.

json
{
  "orderType": "payin",
  "orderNo": "PI...",
  "merchantOrderNo": "...",
  "status": "completed",
  "amount": "5000.00",
  "feeAmount": "15.00",
  "netAmount": "4985.00",
  "currency": "CNY",
  "countryCode": "CN",
  "completedAt": 1718209200
}

Respond 200 + OK. Verify signature before updating order state.

Statuses: created, processing, completed, failed, cancelled.

Released under the MIT License.

2-1-2 Nihonbashi-Hongokucho,Chuo-ku,Tokyo