1. Payin
English
  • Chinese
  • English
  • Open API Documentation
  • Payin
    • Payin Order - General
    • Payin Order - India
    • Payin Order - Philippines
    • Payin Order - Indonesia
    • Payin Order - Vietnam
    • Payin Order - Cryptocurrency
    • Payin Order - China
    • Payin Order - Malaysia
    • Payin Order - Pakistan
    • Payin Order - Thailand
  • Payout
    • Payout Order - General
    • Payout Order - India
    • Payout Order - Philippines
    • Payout Order - Indonesia
    • Payout Order - Vietnam
    • Payout Order - Cryptocurrency
    • Payout Order - Malaysia
    • Payout Order - Pakistan
    • Payout Order - Thailand
  • Callback Notification
    • Callback Description
    • Collection Callback
    • Payout Callback
  • Query API
    • Collection Order Query
    • Payout Order Query
    • Wallet Query
  • Examples of encryption and signature
    • Go Language Encryption and Signature Example
    • Python Encryption and Signature Example
    • PHP encryption and signature example
    • Node.js encryption and signature example
    • Environment variables and request body JSON example
    • Java encryption and signature example
  • Other instructions
    • Response Status Description
    • Order Status Description
    • Payment Method List
    • Bank Code List
    • Checkout iframe Copy Function Support Description
    • Backend Login Instructions
  1. Payin

Payin Order - China

China Payin API#

Brief Description
Create China Payin Order
Request URL
/api/v1/transactions
Request Method
POST
Request Format
Content-Type: application/json

Request Parameters#

Field NameTypeDescriptionRequiredExample
titleStringOrder titleNoPayment Order
order_noStringMerchant order number (Max 64 characters, must be unique)YesTX10000000000001
amountnumberOrder amountYes1000
currencyStringCurrencyYesCNY
payment_methodStringPayment method code, please check payment method listYesALIPAY
callback_urlStringCallback notification URLYeshttp://www.aaa.com/callback
user_ipStringUser's real IP address. To improve payment success rate, please provide the user's real IP addressYes
return_typeStringDefault: PLATFORMNoPLATFORM
remarkStringTransaction description (Max 200 characters)NoPayout order test
expire_secondsintOrder expiration time, in secondsNo3600
payerobjectPayer user informationYes
user_idStringUnique user identifier (account or ID)Yestest001
Request Example
{
  "title": "收款订单",
  "order_no": "pay-00001",
  "amount": 1000,
  "currency": "CNY",
  "remark": "test order",
  "payment_method": "ALIPAY",
  "return_url": "http://localhost:8080/cashier",
  "callback_url": "http://localhost:8080/cb/test/Titan003",
  "expire_seconds": 3600,
  "user_ip": "10.10.2.108",
  "return_type": "PLATFORM",
  "payer": {
        "user_id": "test001"
    }
}

Response Parameter Description#

Field NameTypeDescriptionRequiredExample
codeintMessage status code. 200: Request successful, Others: ErrorYes200
msgStringDescriptionYesSUCCESS
dataobjectSuccess dataYesIncludes the following data
trade_noStringPlatform transaction numberYesPI0000000000001
order_noStringMerchant order numberYesTX10000000000001
statusStringStatus. PROCESSING: In progressYesPROCESSING
messageStringResponse messageYesSuccess
amountnumberOrder amountYes1000.00
due_pay_amountnumberAmount dueYes1000.00
currencyStringCurrencyYesCNY
feenumberTransaction feeYes20.00
detailsobjectPayment guidance informationYes
redirect_urlStringCheckout page redirect linkNohttps://www.playacepay-pay.net/payment?no=T76561402743621
Response Example - Order Created Successfully (When return_type=PLATFORM)
{
  "code": 200,
  "msg": "Success",
  "data": {
    "trade_no": "PI2009978658270650368",
    "order_no": "pay-00003",
    "status": "PROCESSING",
    "message": "success",
    "amount": "1000",
    "due_pay_amount": "1000",
    "currency": "CNY",
    "fee": "3",
    "details": {
      "redirect_url": "https://sandbox.payhub.example.com/pay/PI2009978658270650368",
    }
  }
}
Response Example - Order Creation Failed
{
  "code": 4002,
  "msg": "Payment method code not supported",
  "data": null
}
Modified at 2026-06-01 11:50:35
Previous
Payin Order - Cryptocurrency
Next
Payin Order - Malaysia
Built with