Skip to main content
If an API request fails, Archefusion returns a clear error response to help you identify the issue and debug faster. The error response follows a consistent structure:
FieldTypeDescription
successBooleanIndicates the status of the request.
statusCodeNumberIndicates the outcome of the request.
messageStringIndicates the reason why the request failed.
dataObjectContains additional details about the reason why the request failed.
Example:
{
    "success": false,
    "statusCode": 400,
    "message": "Bad Request Exception",
    "data": {
        "errors": [
            "currency must be longer than or equal to 3 characters",
            "currency must be a string"
        ]
    }
}

Error types

Meaning: The amount field is missing.Solution: Ensure that you provide a valid amount in the amount field before sending a request to the initiate payment endpoint.
Meaning: The provided paymentMethod field or currency field does not match your configured smart routing rule or is missing.Solution: Ensure that you provide a valid paymentMethod and currency that matches your smart routing rule before sending a request to the initiate payment endpoint.
Meaning: The merchantOrderId field is missing.Solution: Ensure that you provide a merchantOrderId field before sending a request to the initiate payment endpoint.
Meaning: The currency field is missing.Solution: Ensure that you provide a valid currency field before sending a request to the initiate payment endpoint.
Meaning: The currency provided in the payment request is not supported by the gateway that Archefusion routed the payment to. This typically happens when no smart routing rule matches the transaction currency and the default gateway does not support it.Solution: Configure a smart routing rule for the currency you want to accept and ensure at least one active gateway supports it. Visit the supported gateways and payment methods page to see which currencies each gateway supports.
Meaning: The provided paymentId in the verify payment request is invalid.Solution: Provide a valid paymentId.
Meaning: Your connected payment gateways are inactive.Solution: Navigate to Payment Gateways > Gateway Providers and select your connected gateway. Toggle the gateway status to active.
Meaning: The customer.email field is missing.Solution: Ensure you provide a valid customer email address in your initiate payment payload, especially when you have the Korapay gateway configured.