1. LESSPAY2 API Reference
Lesspay2.0
  • LESSPAY2 API Reference
    • Get started
    • Authentication
    • Parameter Specifications
    • Pay In
      • Overview
      • Development Guidelines
      • Local Payment Methods (LPMs)
      • Error Codes
      • Card payment
        • Card Payment
        • 3D Secure (3DS) Configuration
        • Fraud & Dispute Webhook Notifications
      • API List
        • Create Payin
        • Fetch Payin
      • Webhook
        • Payin webhook
    • Pay Out
      • Overview
      • Development Guidelines
      • Multiple Transfer Methods
      • Error Codes
      • API List
        • Create Payout
        • Payout Supported Banks
        • Fetch Payout
      • Webhook
        • Payout webhook
  1. LESSPAY2 API Reference

Parameter Specifications

This section defines the standard formats, data types, and enumerations used in the Lesspay API.

1. Data Types#

TypeDescriptionExample
StringUTF-8 String"Hello"
Integer32-bit signed integer100
Long64-bit signed integer (often used for timestamps)1630000000000
Booleantrue or falsetrue
BigDecimalMonetary amount passed as String to preserve precision"100.00"

2. General Rules#

Timestamp: Unless specified otherwise, all time fields use a 13-digit millisecond timestamp (e.g., 1764577927000).
Amount: Amounts must be passed as strings to avoid floating-point errors (e.g., "100.50").
URL: Must be a valid HTTP or HTTPS URL (e.g., https://example.com/callback).

3. Identifiers#

request_id: The unique identifier generated by the Merchant for a transaction request. Used for idempotency and tracking.
pay_order_id: The unique identifier generated by the Lesspay System for a transaction order. Returned in the API response.

4. Enumerations#

4.1 Order Status (order_status)#

IntegerValueDescription
0PENDING_CONFIRMOrder created, awaiting confirmation
1PENDING_PAYOrder awaiting payment
2SUCCEEDPayment successful
3FAILEDPayment failed
4CANCELEDOrder canceled
5REFUNDOrder refunded
6CLOSEDOrder closed
11PARTIAL_SUCCESSPartial success (Payout only)
12PAIDIt has been paid, but the amount is not equal

4.2 Payment Way Type (way_type)#

WECHAT: WeChat Pay
CRYPTO: Cryptocurrency Pay
BANK_TRANSFER: Bank Transfer
CARD_PAYMENT: Card Payment
E_WALLET: E-Wallet

4.3 Access Type (pay_access_type)#

1: Cashier (Redirects user to Lesspay checkout page)
2: OpenAPI (Direct API integration)

4.4 Currency Type (currency)#

Standard 3-letter ISO 4217 currency codes.
CodeCurrency NameCodeCurrency Name
USDUnited States DollarAUDAustralian Dollar
BTCBitcoinHKDHong Kong Dollar
ETHEthereumUSDCUSD Coin
USDTTetherPHPPhilippine Peso
AEDUAE DirhamINRIndian Rupee
CNYChinese YuanIDRIndonesian Rupiah

4.5 Payment Channel Code (way_code)#

4.5.1 Pay In (way_code)#

CodeNameway_typeSupported Currencies
BANK_TRANSFERFomoPayBANK_TRANSFERAED
CHECKOUT_CARDPAYMENTCard PaymentCARD_PAYMENTHKD, AUD, CNY, USD
COIN_PAYCoinQPayCRYPTOUSDT, ETH, USDC
PAY_PROTOCOLPay ProtocolCRYPTOUSDT
WX_H5WechatPay H5WECHATHKD, AUD, CNY
WX_NATIVEWechatPay NativeWECHATHKD, AUD, CNY

4.5.2 Pay Out (way_code)#

CodeNameSupported Currencies
TAZAPAY_PAYOUTTazapay-PayoutPHP, INR, IDR

Modified at 2026-01-28 12:14:06
Previous
Authentication
Next
Overview
Built with