{{ setting('site_title') }} @lang('API uses conventional HTTP response codes to indicate the success or failure of API requests.')
| @lang('Code') | @lang('Status') | @lang('Description') |
|---|---|---|
| 200 | @lang('OK') | @lang('Request succeeded') |
| 400 | @lang('Bad Request') | @lang('Invalid request parameters') |
| 401 | @lang('Unauthorized') | @lang('Invalid or missing API credentials') |
| 403 | @lang('Forbidden') | @lang('Insufficient permissions') |
| 404 | @lang('Not Found') | @lang('Resource not found') |
| 429 | @lang('Too Many Requests') | @lang('Rate limit exceeded') |
| 500 | @lang('Internal Server Error') | @lang('Server error occurred') |
| @lang('Error Code') | @lang('Description') | @lang('Solution') |
|---|---|---|
INVALID_CREDENTIALS |
@lang('Invalid API credentials provided') | @lang('Check your Merchant ID and API Key') |
INSUFFICIENT_FUNDS |
@lang('Customer has insufficient funds') | @lang('Customer needs to add funds to their wallet') |
PAYMENT_DECLINED |
@lang('Payment was declined by payment processor') | @lang('Customer should try a different payment method') |
INVALID_AMOUNT |
@lang('Payment amount is invalid') | @lang('Check minimum and maximum amount limits') |
INVALID_CURRENCY |
@lang('Unsupported currency code') | @lang('Use a supported currency code (USD, EUR, etc.)') |
DUPLICATE_REFERENCE |
@lang('Transaction reference already exists') | @lang('Use a unique transaction reference') |
EXPIRED_SESSION |
@lang('Payment session has expired') | @lang('Create a new payment request') |
MERCHANT_SUSPENDED |
@lang('Merchant account is suspended') | @lang('Contact') {{ setting('site_title') }} @lang('support') |
{
"success": false,
"message": "Validation failed",
"error_code": "INVALID_AMOUNT",
"errors": {
"payment_amount": [
"The payment amount must be at least 1.00"
]
},
"timestamp": "2024-01-20T10:30:00Z"
}
@lang('Need assistance with :site API integration? Our technical team provides comprehensive support.', ['site' => setting('site_title')])