1. Pay Out
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. Pay Out

Error Codes

Lesspay uses conventional HTTP response codes along with business-level error codes in the JSON response to indicate the success or failure of an API request.
2xx status codes denote that the requested operation was performed successfully.
4xx status codes denote a client error, often due to invalid parameters or authentication issues.
5xx status codes denote a server-side error with Lesspay's systems.

HTTP Status Codes#

Status CodeMeaning
200OK: Request successful
400Bad Request: Invalid request format or parameters
401Unauthorized: Invalid or missing API Key/Signature
403Forbidden: You are not authorized to access the requested resource
404Not Found: The requested resource does not exist
500Internal Server Error: A problem occurred on our server. Try again later

Pay Out Business Error Codes (30000-30079)#

In the JSON response body, the code field indicates the business result. The msg field provides a human-readable explanation.

General Errors#

CodeDescriptionSuggestion
0SuccessRequest was successful.
30000Invalid ParameterCheck required fields and data formats.

Parameter Validation Errors (30001-30009)#

CodeDescriptionSuggestion
30001Unsupported CurrencyOnly PHP, INR, IDR are supported for payout.
30002Amount Mismatchtarget_amount does not equal the sum of detail amounts.
30003Review RejectedOrder rejected by internal operations review.
30004Invalid Beneficiary TypeMust be business or individual.
30005Invalid Country CodeMust be 2-character ISO 3166-1 alpha-2 code.
30006Invalid Bank AccountCheck account number format.
30007Duplicate Detail IDmch_order_id within the batch must be unique.
30008Invalid Transaction TypeMust be payout.
30009Invalid Amount FormatAmount must be a valid positive number string.

Idempotency Errors (30010-30019)#

CodeDescriptionSuggestion
30010Idempotency ConflictSame request_id with different parameters.
30011Duplicate Request IDrequest_id already exists.

Query Errors (30020-30029)#

CodeDescriptionSuggestion
30020Order Not FoundVerify pay_order_id or request_id.
30021Detail Not FoundVerify mch_order_id.

Channel Errors (30030-30039)#

CodeDescriptionSuggestion
30030Channel Insufficient BalanceContact operations to top up channel funds.
30031Channel ErrorUpstream payment channel returned an error.
30032Channel TimeoutRetry the request or check later.
30033Channel Not ConfiguredPayout channel is not set up for this app.

Merchant/App Status Errors (30040-30049)#

CodeDescriptionSuggestion
30040Merchant Status AbnormalContact support.
30041App Status AbnormalApp may be disabled. Contact support.
30042Payout Not EnabledEnable payout in merchant settings.
30043Payment Method Not ConfiguredConfigure the payment method for this app.

Signature Errors (30050-30059)#

CodeDescriptionSuggestion
30050Signature ErrorCheck signature algorithm and key.
30051Signature Verification FailedRe-generate the signature.
30052Timestamp ExpiredUse current timestamp and re-sign.
30053Invalid Signature TypeCheck sign_type parameter.

Order Status Errors (30060-30069)#

CodeDescriptionSuggestion
30060Order Status Not AllowCurrent order status does not permit this action.
30061Order Already ProcessingWait for the order to complete.
30062Order Already CompletedCannot modify a completed order.

Limit Errors (30070-30079)#

CodeDescriptionSuggestion
30070Single Amount Exceed LimitLower the single transaction amount.
30071Daily Amount Exceed LimitWait for the next day or contact support.
30072Detail Count Exceed LimitReduce the number of details in the batch.
30073Amount Too SmallIncrease the transaction amount.

Modified at 2025-12-19 04:10:04
Previous
Multiple Transfer Methods
Next
Create Payout
Built with