Error Glossary

NOTE: All Aeropay errors return with HTTP 200 response

Error responses include a 'success' value of false, along with a 'code' value, i.e. (AP002), and a message 'error' that contains more information on the issue

{
    "success": false,
    "code": "AP700",
    "error": "Missing required Parameter: 'merchantId'"
}

POST /token and some newer endpoints return error codes and messages nested in 'error' exampled below

{
    "success": false,
    "error": {
        "code": "AP002",
        "message": "invalid API key or secret key"
    }
}

Aeropay Error Glossary

Authentication & General Errors (AP00X)

Error CodeMeaningResolutionMessage
AP001Invalid API Keys or API keys were not provided.Double check API Key/secret and other params"API key and secret key required"
AP002API key/secret invalid or insufficient permissions on merchant/userDouble check API Key/secret and other params"Invalid API key or secret key"
AP003Your merchant account is locked.Please reach out to the Aeropay team."Account locked"
AP004Missing token.Include the authorization token in your header of your request."Missing authorization header token"
AP005Client session is invalid.Refresh your session."Session does not match client."
AP006Unauthorized userCheck the token of your call to ensure you're using the correct scope."Client is not authorized for this scope."
AP007Token has expired.Retrieve a new token."Token has expired"
AP008Invalid token.Retrieve a new token."Invalid token"
AP009MerchantUser not authorized for merchantId.Check the API URL and token to ensure you're in the correct scope."Unauthorized"
AP010MerchantUser not authorized for call.Check the API URL and token to ensure you're in the correct scope."Unauthorized"
AP011MerchantUser not authorized for transaction.Check the API URL and token to ensure you're in the correct scope."Unauthorized"

Users & Merchants (AP1XX & AP2XX)

Error CoreMeaningResolutionMessage
AP101Invalid or missing authentication tokenDouble check correct token and token scope is being used, and that 'authenticationToken' is provided in headers of call"No Authenticated User"
AP102Error creating user in the databaseCheck that the user information is correct, or retry at a later date."Unable to create user."
AP103Issue with user reputationThere is an issue setting the user's reputation. Reach out to Aeropay support."Unable to set user reputation level for user {user}"
AP104User information not provided during user creationEnsure all necessary information is provided on user profile."Can not extract user information."
AP105Area code missingProvide area code for phone number"Phone number {phone_number} missing area code."
AP106Improper phone number formatEnsure phone number is properly formatted"Phone number {phone_number} is improperly formatted."
AP107User already existsUser already exists for the provided account information. You may need to verify the user or fetch their information."User already exists"
AP108Cannot create userError creating a new user. Reach out to Aeropay support."Error adding user"
AP109User is disabledThe user should email [email protected] if they’ve made payments. If they are a new user, they should contact [email protected]"We've detected delinquent activity on your account. Reach out to  [email protected]  to reactivate your account."
AP110User is missing required info to transactVerify user has valid first and last names, email and phone number"Your profile is incomplete. Please contact [email protected] to finish setting up before completing this transaction."
AP111Invalid MFA codeProvided user verification code is incorrect, prompt user to enter correct code."Invalid verification code"
AP112Failed MFA too many timesFailed user verification too many times. User will have to retry later."Max attempts exceeded"
AP113User does not existThis user does not exist. Ensure you have the correct userId."User does not exist"
AP115Phone number invalidEnsure the phone number being used is a valid US mobile number in ISO format (+1XXXXXXXXXX). Landlines, VOIPs, or prepaid numbers are invalid."We're sorry, but the type of phone you entered is not supported or invalid. Please enter a valid mobile number to proceed."
AP201Unable to fetch merchantThis merchant does not exist. Ensure you have the correct merchantId."No merchant exists for username {merchant_id}"
AP202Unable to fetch merchantThis merchant does not exist. Ensure you have the correct merchantId."No merchant user exists for merchant user id {user_id}."
AP203Unable to fetch locationThis locationid may not exist. Ensure you have the correct locationid."Unable to get location for merchant id {merchant_id}."
AP204Location not for merchantThis locationid does not exist for your merchant. Ensure you have the correct locationid."Location {location} not for merchant."
AP205Unable to get rewards and feesFailed to get rewards and fees. Reach out to Aeropay"Unable to get rewards and fees for merchant {merchant}."
AP206Unable to get merchantFailed to get merchant. Reach out to Aeropay."Unable to get merchant account for id {account_id}."
AP207Unable to find merchantUnable to find a merchant by id. Ensure you have the correct merchantId."No Merchant found for id {merchant}."
AP208Unable to find merchant by uuidUnable to find merchant by uuid. Ensure you have the correct location uuid."Failed to fetch location for uuid {uuid}."
AP209Location and merchant do not matchLocation uuid and merchantId do not match. Ensure you have the correct merchantId and location uuid."Location uuid {uuid} does not match the merchant {merchant}."
AP210Merchant not verifiedYour merchant account is not verified. Contact Aeropay compliance for more details."This merchant is not activated, please contact [email protected] for more information."

Transactions (AP3XX)

Error CodeMeaningResolutionMessage
AP300Bank Connection ErrorThe balance refresh of this user’s account failed and is usually caused by the user resetting their banking password or security settings within online banking. Balances will also become stale within 6-12 months.

This is called a UAR (User-Action Required) error where the user must reconnect their account or contact Aeropay where we will assess if we can override their balance check.
"We are having issues connecting to your bank. Try reconnecting your bank or reach out to [email protected] to resolve the issue."
AP301Blocked UserThis user's account is currently in a blocked status. Direct the user to contact [email protected] to resolve the issue. "User {username} is blocked."
AP302 Insufficient FundsThe user’s current balance does not meet the transaction amount. Pending transactions in the user’s account may be impacting the total available balance.

The user must deposit additional funds into their connected account. (This may take 1-2 business days to be reflected)
"We could not approve your payment. Your available balance might be insufficient for this transaction. Please add more funds to your account or contact [email protected] for more information."
AP303Transaction Missing LocationThe transaction request is missing the location code required to complete the payment. Please reach out to Aeropay for assistance."Transaction missing location."
AP304Amount exceeds maximum limit for merchantThe requested transaction amount exceeds the daily limit on your merchant account. Please reach out to Aeropay for assistance. "'Transaction amount {amount} exceeds limit.'"
AP305Account BlockedSpecific to /payoutTransaction: The user has an outstanding declined transaction.

The user should email [email protected] if they’ve made payments. If they are a new user, they should contact [email protected]
"We've detected delinquent activity on your account. Reach out to [email protected] to reactivate your account."
AP306Balance does not meet requirementThe user's available bank account balance is insufficient to cover the transaction.

The user must deposit additional funds into their connected account. (This may take 1-2 business days to be reflected)
"We could not approve your payment. Your available balance might be insufficient for this transaction. Please add more funds to your bank account or contact [email protected] for more information".
AP307Transaction Not ApprovedAeropay’s machine learning model did not approve the transaction after assessing its likelihood to decline.

The user may contact the Aeropay Team for a possible override at [email protected]
"We could not approve your payment. Our AI protection engine predicts this transfer could overdraft. Try a smaller amount or contact [email protected]. FAQ."
AP308Invalid amountThe amount submitted for the transaction does not match a standard monetary format. Please retry the amount with a limit of two decimal places. "'Invalid amount: {reason}'"
AP310Credit transaction was declinedThe transaction request was malformed. Please reach out to Aeropay for assistance. "We're sorry, your transaction request has been declined."
AP311Bank Account attempted to be removed while it still has pending paymentsA user's active bank account cannot be removed until pending payments are resolved. Please wait until the user's pending payments are completed before removing the account or contact Aeropay for more information. "Bank Account has pending payments."
AP312Preauth already capturedSpecific to /preauthTransaction: this preauthorized transaction has already been captured."Preauth has already been captured by Transaction #{transaction}."
AP313Preauth capture ineligibleThe preauth transaction is not eligible for capture. Please contact Aeropay for more information.

This error is common when trying to capture canceled preauth transactions.
"Preauthorized Transaction with status of {status} not eligible for capture."
AP314Transaction uuid already existsThe transaction UUID is already in use. Please provide unique transaction uuids that follow standard UUID formating."Transaction with uuid of {uuid} already exists"
AP315 Guardrail rejectThis transaction was rejected by Aeropay's guardrails. Please contact Aeropay for more information. "We could not approve your payment. Our AI protection engine predicts this transfer could overdraft. Try a smaller amount or contact [email protected] "

Bank Linking (AP4XX & AP5XX)

Error CodeMeaningResolutionMessage
AP400User has no banks connected and cannot transactConnect a bank account for user"Connect your bank account to initiate a transaction."
AP401Bank account id does not belong to user attempting to transactProvide valid bankAccountId or remove bankAccountId param and transaction will use user's default bank account"We cannot validate the account you're attempting to connect. Please connect a valid account."
AP402Merchant bank account invalidYour merchant account may not have a valid bank account. Reach out to your Aeropay representative."No bank account for merchant id {merchant}."
AP403Blocked routing numberThe users's bank account has been disabled for security purposes. Try again later."Sorry, your bank is not supported at this time. Please connect to a different account. Questions? Contact [email protected] ."
AP404Routing number provided does not pass validationConfirm valid routing number."We could not validate your routing number."
AP405Error adding bankConfirm valid bank account for user. There may be an issue with bank linking at this time."Error adding user bank account."
AP406Account number provided does not pass validationConfirm valid account number."Invalid account number"
AP407User flagged as malicious and has been blocked from bank linkingThe user may contact the Aeropay Team for a possible override at [email protected]"Bank linking has been disabled on your account. Please contact [email protected] to resolve."
AP408Invalid aggregatorProvide a supported aggregator"Unknown Aggregator {aggregator}"
AP409Invalid redirectURIProvide a valid redirectURI"redirectURI invalid."
AP410This bank account is already linked to another userThe user may contact the Aeropay Team for a possible resolution at [email protected]"There was an issue linking your bank account. please contact [email protected] to resolve."
AP411Invalid account typeUser may have connected a non-checking account. Ensure checking account is linked."Invalid account connected for processing payments. Please connect a checking account."
AP412Bank account has been removed from users accountProvide valid bankAccountId or remove bankAccountId param and transaction will use user's default bank account"This account has already been removed.."
AP413Bank account does not belong to merchantMerchant bank account may not be valid. Reach out to Aeropay representative."Bank account {account} does not belong to merchant {merchant}."
AP414Bank linking limit reachedUser has already linked 5 unique accounts."Sorry, you've linked the maximum number of accounts to your Aeropay profile. Please reach out to [email protected] if you have any questions."
AP415Bank linking limit reachedUser has already linked this routing + accounting combination 3 times before."Sorry, you've already linked this bank account before. Please reach out to [email protected] if you have any questions."
AP500Outstanding micro depositConfirm micro deposit before linking bank."Outstanding manual bank link for account ending in {last 4}."
AP501Microdeposit failedUnable to create microdeposit. Try again later or reach out to support."Unable to create micro deposit for account ending in {last 4}."
AP502Microdeposit failedUnable to fetch microdeposit. Try again later or reach out to support."Unable to get micro deposit."
AP503Microdeposit failedExceeded max number of allowed micro deposit failures."Exceeded maximum number of attempts for account ending in {last 4}.
AP504Incorrect microdeposit amountsProvide correct micro deposit amounts."At least one of these amounts is incorrect. Please ensure you are entering two different amounts exactly as they appear in your account."
AP505Microdeposit batch failureAeropay is unable to batch the microdeposits. Try another bank or reach out to support."'Unable to batch microdeposits."
AP506Microdeposit batch failureAeropay is unable to batch the microdeposits. Try another bank or reach out to support."Aeropay is unable to batch the microdeposits. Try another bank or reach out to support."

Subscriptions (AP6XX)

Error CodeMeaningResolutionMessage
AP600Error Fetching Subscription(s)We were not able to locate the subscription(s). Please contact Aeropay for assistance."Error Fetching subscription."
AP601No Subscription for idThere isn't an active subscription associated with the ID provided. Please contact Aeropay for assistance."No subscription for id {subscription_id}"
AP602Missing Subscription IdThe subscription request is missing a subscription ID. Please retry the subscription request with a valid subscription ID."A SubscriptionId is required."
AP603Failed to Fetch Subscription EnrollmentsWe were not able to pull the requested list of users enrolled in this subscription. Please contact Aeropay for assistance."Failed to fetch subscription enrollments."
AP604Enrollments must be for the specified merchantOnly users on your merchant account can be associated with subscriptions. Please contact Aeropay for assistance."Enrollments must be for the specified merchant."
AP605A Merchant is RequiredA merchant ID was not included in the subscription request. Please contact Aeropay for assistance."A merchant is required"
AP606Bank Account attempted to be removed while it still has subscriptionsA user's active bank account cannot be removed if the user is associated with an active subscription. Please remove the user from the subscription before removing the primary bank account."Bank Account attempted to be removed while it still has subscriptions"
AP607Subscription does not belong to the merchantIdThe subscription ID provided does not belong to your merchant account. Please contact Aeropay for assistance."Subscription #{subscriptionId} does not belong to merchant #{merchantId}."
AP608Subscription is marked as removedThe subscription ID provided is for an inactive subscription. Please utilize an active subscription ID or contact Aeropay for assistance.""Subscription #{subscriptionId} is removed."

General/Other Errors (AP700, AP800, AP900)

Error CodeMeaningResolutionMessage
AP700Payload is missing required parameterInclude the missing required parameter"Missing required Parameter: '{parameter}'"
AP800Shopify integration: access token missingThere is no access token for given scope. Reach out to Aeropay for assistance."No access token for shopify scope: {scope}"
AP900Error calling external APIAn issue arose calling an external API. Reach out to Aeropay for assistance."Error when calling {api} API, returned with HTTP status code {code}"

Webhooks (AP11XX)

Error CodeMeaningResolutionMessage
AP1100Invalid webhook topicProvide valid topic or webhook Id for webhook delete"Topic or webhook Id required to delete webhook"
AP1101Error fetching webhookAeropay is unable to fetch webhook. Try again later or contact Aeropay."Error fetching webhook"
AP1102No topic providedProvide a valid topic for webhook."topic required to create webhook"
AP1103No url providedProvide a valid url for webhook."Url is invalid or missing"
AP1104Invalid topicProvide a valid url for webhook."Unrecognized topic: {topic}"
AP1105Error creating webhookWebhook could not be created. Try again later or contact Aeropay."Error creating webhook"
AP1106Error deleting webhookWebhook could not be deleted. Try again later or contact Aeropay."Error deleting webhook"
AP1107No merchant providedProvide a valid merchantId."A Merchant is required"

Refunds (AP13XX)

Error CodeMeaningResolutionMessage
AP1300Transaction already refundedTransaction has already been refunded, no refund needs to be issued."Transaction #{transaction_id} has already been refunded by Transaction #{reversal_transaction_id}"
AP1301Refund already queuedTransaction has already been queued for refund, no action needs to be taken."Transaction {transaction_id} has already been queued for a refund"
AP1302Invalid refund amountProvide refund amount less than or equal to the transaction amount."Refund amount must be equal to or less than the original transaction amount"
AP1303Negative refund amountCannot refund a negative amount."Refund amount must be positive"
AP1304Invalid transaction type for refundTransaction cannot be refunded due to transaction type."{transaction_type} transactions cannot be refunded"