Error Handling

LUXON API

  •  
  • Integration checklist
  • API Guide
  • Authentication
  • Error Handling
  • Transactions
  • Create Payment
  • Create Pay-out
  • Get Transaction
  • Cancel Payment
  • Refund Payment
  • Resend Transaction
  • Two Step Transactions
  • Create Payment
  • One Click Payments
  • Create One-click Agreement
  • Create One-click Payment
  • Information
  • Check Transactions
  • Get Balances
  • Webhooks
  • Transactions Statuses

Error Handling

Luxon uses conventional HTTP response codes to indicate the success or failure of an API request.

HTTP RESPONSE CODES

200 – OK Everything worked as expected
400 – Bad Request Request may have a missing parameter or be badly configured
401 – Unauthorized Invalid authentication
402 – Request failed The request was valid but failed
403 – Forbidden The API key doesn’t have permission to perform that request
404 – Not Found The resource does not exist

All responses should contain a status object which represents the result of the call.

Response


{
"status": {
"code": "string", // short code of the call result like 'INSUFFICIENT_FUNDS'
"message": "string" // optional detailed error message
}
}

 

Code Description
general.not.authorized Not authorized for the given operation
auth.bad.credentials Bad credentials
transaction.invalid Invalid transaction
merchant.not.found Merchant not found
merchant.unsupported.report.format Unsupported report format
merchant.api.invalid.refund.receiver Invalid receiver for refund
merchant.transaction.refunded Refund for this transaction has already been made
merchant.transaction.id.exist Transaction with such merchant transaction id already exists
merchant.transaction.not.found Merchant transaction not found
merchant.transaction.expired The session has expired and the payment cannot be completed
merchant.insufficient.balance Insufficient merchant balance
risk.level.limit.merchant.refund.amount.exceeded Refund is not allowed. The refund amount is above the allowed limit for current wallet
risk.level.limit.merchant.amount.exceeded The transfer amount is above the allowed limit
thirdparty.aml.verification.hold Aml hold response
thirdparty.aml.verification.reject Aml reject response
invalid.amount Invalid amount
invalid.transfer.status Invalid transfer status
invalid.transfer.id Invalid transfer id
invalid.receiver.wallet Invalid receiver wallet
insufficient.balance Insufficient balance
address.not.registered.or.inactive Address is not registered or inactive in the smart contract
payment.method.not.found User payment method not found
validation.currency.not.supported The currency sent is not a supported one