Errors

Response format

Every response has the same envelope. A failed request has status: false, a Vendy error code and a msg. Some errors also carry details in data and error.

{
  "status": false,
  "code": 326,
  "msg": "Business not found"
}

Validation errors

When a field is missing or malformed, the response is HTTP 400 with code 204. data lists each problem as {field: message}:

{
  "status": false,
  "code": 204,
  "msg": "Input is invalid",
  "data": [
    { "amount": "amount must be specified" },
    { "msisdn": "msisdn or email must be specified" }
  ],
  "error": [
    { "amount": "amount must be specified" },
    { "msisdn": "msisdn or email must be specified" }
  ]
}

HTTP status codes

StatusMeaning
200Success. 201 for Create Dedicated Account
400The request was invalid or couldn't be completed. Check code and msg
401Your AccessKey or SecretKey is missing or wrong
403Your keys don't have permission for this action or this business
500Something went wrong at Vendy. Retry later, and contact support if it continues
📘

Match on code and msg

A few codes are shared by more than one error, for example 327, 334 and 338. Check msg as well as code when you handle a specific error.

Error codes

CodeNameMessage
201ACCOUNT_NOT_FOUNDEmail or password maybe incorrect. Also returned as "Access or Secret key not provided" when a key header is missing
203INCORRECT_SECRET_KEYIncorrect secret key
204INVALID_DATAInput is invalid
206NOT_CREATEDData not created
207NOT_FOUNDData not found
208NOT_UPDATEDData not updated
209ACCOUNT_BLOCKEDAccount blocked
217WALLET_NOT_SUPPORTEDWallet not supported
218WEBHOOK_NOT_SUPPORTEDWebhook not supported. The msg usually carries the reason
219WALLET_NOT_CREATEDWallet not created
221WALLETS_NOT_FOUNDWallet not found
223TRANSACTION_NOT_BE_CREATEDTransaction not be created
229UNAUTHORIZEDUser not logged in. Returned when the AccessKey is unknown
244BALANCE_NOT_RETRIEVEDBalance not retrieved
252BALANCE_INSUFFICIENTYour balance is insufficient
290BANK_ACCOUNT_EXISTSYou already have this bank account
291BANK_ACCOUNT_REMOVEDBank cannot be removed
292BANK_NOT_DEFAULTBank could not be made default
293TRANSACTION_AMOUNT_INVALIDTransaction amount does not match payment amount
297PAYMENT_NOT_PROCESSEDPayment could not be processed right now. Please try again later
298TRANSACTION_NO_PENDINGTransaction is not pending
305TRANSACTION_STILL_PENDINGTransaction still processing. Please wait...
306TRANSACTION_NOT_PROCESSEDTransaction failed. Please try again later
310KYC_NOT_VERIFIEDYou account has not been verified. Please complete KYC or contact support
318BALANCE_NOT_UPDATEDBalance not updated
324BUSINESS_NOT_CREATEDBusiness not created
325BUSINESS_NOT_ACTIVEBusiness not active
326BUSINESS_NOT_FOUNDBusiness not found
327TRANSACTION_NOT_FOUNDTransaction not found
327BANK_ACCOUNT_NOT_FOUNDBank information not resolved
328PAYOUT_NOT_CREATEDError occurred while creating payout
329PAYOUT_NOT_FOUNDPayout not found
330PAYOUT_ALREADY_PROCESSEDPayout already processed
331PAYOUT_NOT_UPDATEDPayout not processed, please try again later or contact admin
332CHANNELS_NOT_FOUNDChannels not found
334WALLET_MULTIPLE_CURRENCYYou cannot have multiple wallets with the same currency
334WALLET_MULTIPLE_TYPEYou cannot have multiple wallets of the same type
335WALLET_NOT_CREDITEDWallet could not be credited
336WALLET_BLOCKEDYour wallet has been blocked, withdrawals are not allowed
337PUBLIC_KEY_INVALIDinvalid public key, please check key or contact administrator
338TRANSACTION_LIMIT_EXCEEDEDAmount exceeds transaction limit of {limit}
338TRANSACTION_LIMIT_LOWAmount cannot be less than {limit}
338BUSINESS_IN_REVIEWYour business is currently under review
338BUSINESS_PENDINGPlease complete KYC
339TRANSACTION_NOT_REVERSEDTransaction cannot be reversed
340TRANSACTION_NOT_COMPLETED_REVERSEDOnly successful transactions can be reversed
342FORBIDDENYou do not have permission to take that action
348PAYOUT_NOT_PROCESSEDPayout not processed
349BANKCODE_NOT_PRESENTBank account does not have bank code associated with. Please add and remove bank account again
350NOT_SUPPORTEDNot supported
351WALLET_ON_HOLDWallet is on hold, only inflow actions can be carried out
352WALLET_ONLY_DEBITWallet cannot be credited
353WALLET_ONLY_CREDITWallet cannot be debited
354WALLET_NOT_DEBITEDWallet could not be debited
359WALLET_TYPE_NOT_SUPPORTEDWallet type not supported
360WALLET_BLOCKED_NO_INFLOWWallet blocked no inflow activity allowed
361SERVICE_UNAVAILABLEService is currently unavailable
364INTERNAL_SERVER_ERRORInternal server error
372BUSINESS_BLOCKEDBusiness blocked
386FORBIDDEN_AUTH_TYPEYour account type is not allowed to take this action
393BANK_NOT_VALIDATEDAccount can't be validated, Please Try Again Later!
407WALLET_CURRENCY_NOT_SUPPORTEDWallet currency does not match transaction currency
417CURRENCY_NOT_SUPPORTEDCurrency is not yet supported
418INTERNAL_ERRORInternal server error
438CUSTOMER_BLACKLISTEDYou're no longer allowed to transact on this platform
439PAYOUT_REFID_EXISTSA transfer with this reference already exists