ELANLINK
  1. API Reference
ELANLINK
  • Guides
    • Welcome
    • Interface
  • API Reference
    • Introduction
    • Endpoints
    • Data Types
    • Signing
    • 3-D Secure Verification
    • Subscription
    • Errors
    • Webhooks
    • Items Information
    • Changelog
    • Acquiring
      • Create a direct payment
        POST
      • Create a redirect (iFrame) payment
        POST
      • Capture a transaction
        POST
      • Review a transaction
        POST
      • Cancel a transaction
        POST
      • Cancel a subscription
        POST
      • Query a transaction
        POST
      • Refund a transaction
        POST
      • Search a refund transaction
        POST
      • Create a payout
        POST
      • Optimise payment methods
        POST
      • Update an order
        POST
  • Appendix
    • Test Cards
    • Bank Code
    • Country Code
    • Currency Code
    • Payment Methods
  1. API Reference

Errors

ELANLINK uses standard HTTP response codes to indicate whether an API request was successful or failed. Generally:
2xx codes indicate success.
4xx codes indicate client errors, such as missing required parameters or a failed charge.
5xx codes indicate server-side errors on Stripe’s end, which are rare.
Certain 4xx errors, like a card being declined, come with an error code that provides a brief explanation, allowing for programmatic handling.
When we send an error response, the body will generally contain the following fields:

Response Body Attributes#

ItemDescription
codeError code (please refer to reference table)
sourceName of the request parameter that caused the error
messageDescription of the error

Common Errors#

I0013: Encryption (encryption_data) Error#

Make sure sign_key is correct; Noted that the sign_key is case sensitive
Make sure the encryption is via SHA256 method
Make sure the parameters in return_url do NOT contain "&"

I0014: Test sub-account is used in production#

The initial merchant account is created in test environment
Merchant needs to use the merchant account in sandbox while developing payment integration
Once complete developing and testing, please reach to us to obtain the merchant account in production

I0015 : Live sub-account is used in Sandbox#

After us enables a merchant account to LIVE, merchant need to change the target URLs to live environment URLs.

Error Codes#

Acquiring
Issuing
Previous
Subscription
Next
Webhooks