SparkPay OpenAPI Docs
English
  • English
  • 简体中文
English
  • English
  • 简体中文
  1. Must-Read for Integration
  • Product Introduction
  • Quick Guide
    • Integration Preparation
    • Interface Signature Description
  • Must-Read for Integration
    • Interface Rules
    • Asynchronous Notification
    • Interface Error Codes
    • Network and Currency
  • Integration Scenarios
    • Payment
    • Close Order
  • API List
    • Payment Order Creation
      POST
    • Payment Order Query
      GET
    • Payment Order Closure
      POST
    • Payment Order Creation(Pro Edition)
      POST
    • Payment Order Query(Pro Edition)
      GET
  • Frequently Asked Questions
    • Notification Related Issues
    • Redirect Failure Issues
    • Interface Error Issues
    • Test Token Acquisition/Test Network Connection
  • Integration Example
    • Interface Signature Example - PHP
    • Interface Signature Example - Postman
  • Version Notes
    • Version Notes
  1. Must-Read for Integration

Interface Error Codes

Error CodeTypeError ReasonError DescriptionSolution
40000numberInvalid request parametersSignature verification of the interface parameters failedEnsure that the signature private key matches the RSA public key uploaded on the merchant platform.
40001numberInvalid request parametersAES key decryption failedThe public key used to encrypt the AES key should be the payment platform’s RSA public key. Merchants should log into the merchant platform to view and download it on the “Applications” page.
40002numberInvalid request parametersInvalid APPIDCheck if the APPID is correct.
40003numberInvalid request parametersMissing required parameterVerify that all parameters are included.
40004numberInvalid request parametersUnsupported document typeCheck if the document type is correct. Currently supported types: ID for identity card and PASSPORT for passport.
40005numberInvalid request parametersPhone number format not supportedCheck if the phone number format is correct.
40006numberInvalid request parametersIncomplete document information providedCheck if the document type and document number are complete.
40007numberInvalid request parametersAPPID does not belong to this merchantLog into the merchant platform and check the APPID on the “Applications” page.
40008numberInvalid request parametersMerchant number does not existVerify that the merchant number is correct.
40009numberInvalid request parametersParameter errorEnsure that the parameter values match the types outlined in the online interface documentation.
40010numberInvalid request parametersUser account opening not supported in this regionConsult Spark’s official support staff about future support plans for your region.
40011numberInvalid request parametersApplication call limit exceededReduce the request frequency and try again later.
40012numberInvalid request parametersEmail format not supportedCheck if the email format is correct.
40013numberInvalid request parametersUnauthorizedAuthorization credentials must be included in the "Authorization" field of the HTTP Header for the request. For details, please refer to the interface documentation (check the authorization information interface based on the authorization token).
40014numberInvalid request parametersAccount already existsThe specified phone number/email already has an account in SPARK. To retrieve the user’s SPARK account information, call the SPARK user authorization-related interface to obtain user information through user authorization.
40015numberInvalid request parametersUser information retrieval exceptionThe user is registered under another merchant’s application; call the SPARK user authorization-related interface to obtain user information through user authorization.
40016numberInvalid request parametersCountry or region is not within the merchant’s operational area, account opening not possibleMerchants need to support user regions as operational areas.
40017numberInvalid request parametersCountry code and phone number do not matchPlease use the country code corresponding to the phone number; see the country code table.
40018numberInvalid request parametersInvalid country codeCheck if the country code format is correct; see the country code table.
41000numberInvalid request parametersCallback notification URL does not comply with rulesCheck if the URL format is correct.
41001numberInvalid request parametersAsynchronous notification URL does not comply with rulesCheck if the URL format is correct.
41002numberInvalid request parametersMerchant not activatedContact Spark’s official support personnel for assistance in activation.
41003numberInvalid request parametersPayer has not opened an accountThe payer must be an active account.
41005numberInvalid request parametersSplit type not supportedCheck if the split type is correct; currently supported types are: 1 for merchant number, 2 for wallet user.
41006numberInvalid request parametersSplit purpose not supportedCheck if the split purpose is correct; currently supported types are: 1 for main transaction amount, 2 for merchant service fee, 3 for other fees.
41007numberInvalid request parametersMerchant split amount must be greater than platform service feeVerify the split amount; it must be greater than the minimum service fee on any network (platform service fee = order amount * service fee rate; if calculated amount ≤ minimum service fee, use minimum service fee).
41008numberInvalid request parametersSplit order amount does not match the total order amountCheck if the split amount is correct.
41009numberInvalid request parametersPayment currency not supportedCheck if the order currency is correct; currently supported currency is USDT.
41010numberInvalid request parametersSplit account has not been openedThe split account must be an active account.
41011numberInvalid request parametersSplit account has not been activatedThe split account must be an activated account.
41012numberInvalid request parametersMerchant order has expiredVerify that the order payment deadline is correct.
41013numberInvalid request parametersTotal amount of merchant order does not comply with rulesCheck if the total order amount is correct.
41014numberInvalid request parametersSplit amount does not comply with rulesCheck if the split amount is correct.
41015numberInvalid request parametersSplit order missing main recipientCheck if the main recipient of the split order is provided.
41016numberInvalid request parametersSplit order does not support multiple main recipientsCheck if there is only one unique main recipient for the split order.
41017numberInvalid request parametersService fee merchant and ordering merchant customer numbers do not matchVerify that the service fee merchant or ordering merchant customer numbers are correct.
41018numberInvalid request parametersTotal order amount exceeds maximum precisionVerify that the total order amount is correct.
41019numberInvalid request parametersSplit amount exceeds maximum precisionVerify that the split order amount is correct.
41021numberInvalid request parametersTimeout must be greater than order timeVerify that the order timeout is set correctly.
41022numberInvalid request parametersPayer and payee cannot be the sameVerify that the recipient of the order is correct.
41023numberInvalid request parametersRequest number does not comply with rulesCheck if the request number is correct.
41025numberInvalid request parametersSplit type and split purpose do not matchVerify that the split type and split purpose are correct; the current rule is that the wallet user split purpose is the main transaction amount, while the merchant split purpose is for service fees or other costs.
41026numberInvalid request parametersSplit order missing merchantCheck if the merchant recipient is provided in the split order.
41027numberInvalid request parametersOrder payment network not supportedCheck if the order payment network is correct.
41028numberInvalid request parametersPayment order amount must be greater than the minimum platform service feeVerify that the order amount is correct; it must be greater than the minimum platform service fee on any network.
41029numberInvalid request parametersSplitter information errorCheck for duplicate splitters.
41030numberInvalid request parametersOrdering merchant payment not supportedVerify if the payer is correct.
41031numberInvalid request parametersPayment network does not support this currency.
41032numberInvalid request parametersSplit payment address is incorrect.
41033numberInvalid request parametersDuplicate split payment address exists.
41034numberInvalid request parametersThe split payment address cannot be the merchant CA address.Check each split payment address; the payment address cannot be the merchant CA address.
41035numberInvalid request parametersNo external wallet configured for the current network, please configure one first.Log in to the merchant system and set an external wallet in the receive payment network.
41036numberInvalid ParameterDuplicate currency found in the available receiving networks.Check the parameter available_payment_currency_networks to ensure no duplicate currencies within the same network.
41037numberInvalid ParameterDuplicate network found in the available receiving networks.Check the parameter available_payment_currency_networks to ensure no duplicate networks.
41038numberInvalid ParameterNone of the available receiving networks meet the minimum service fee.Try setting a higher pricing amount or seller amount.
41039numberInvalid ParameterOnline payment not enabled.Please contact Spark support staff to enable online payment services.
43000numberInvalid request parametersMerchant balance insufficientMerchant balance is insufficient; please recharge.
43005numberInvalid request parametersPayment order does not existCheck if the payment order number is correct.
43006numberInvalid request parametersThis order cannot be closedThe order cannot be closed due to status or system constraints.
43007numberInvalid request parametersThis order has been closedThe order has been closed; no further action is required.
43008numberInvalid request parametersThis customer has not opened an accountCustomers in the interface parameters must have an active account.
43011numberInvalid request parametersExceeded the maximum number of splits per orderAdjust the number of splits in the order and try again.
44000numberInvalid request parametersAuthorization code invalidThe authorization code has expired; user authorization needs to be reinitiated.
44001numberInvalid request parametersCallback address for successful authorization does not match authorization codeCheck if the parameters redirect_url and code correspond; the code should match the callback address receiving the authorization code during merchant application registration.
44002numberInvalid request parametersInvalid identification informationCheck if the parameter client_id is correct.
44003numberInvalid request parametersInvalid authorization typeCheck if the authorization type is correct; currently supported types are: refresh_token for refresh token and authorization_code for obtaining authorization token.
44004numberInvalid request parametersRefresh token invalidThe refresh_token returned by the authorization token interface has expired; user authorization needs to be reinitiated.
50000numberSystem exceptionInternal system errorSystem exception; please retry with the same parameters.
Modified at 2025-04-14 03:45:42
Previous
Asynchronous Notification
Next
Network and Currency
Built with