Welcome!

Welcome to Vendy's API documentation.

Use the Vendy API to collect payments from your customers online and offline, hold the funds in wallets, and send money out to bank accounts.

New to Vendy? Create an account on the Vendy Dashboard, then get your keys from Settings → APIs. Read Errors before you go live.

API Environments

Vendy API operates in two environments: live and sandbox.

Environment HostUsageURL
Sandbox APIFor development purposes and to test Vendy's features without affecting real data.https://api.staging.myvendy.com
Live APITo access real-time data when your product is ready to livehttps://api.myvendy.com
Live DashboardSign up on the live dashboard when you're ready to go livehttps://dashboard.myvendy.com

API Interaction

Requests

The Vendy API accepts POST and GET requests. Your requests must follow these formal requirements:

  • Authenticate with both AccessKey and SecretKey headers (aliases: x-access-key/x-secret-key, accesskey/secretkey, access_key/secret_key).
  • The content-type header must be application/json.
  • The request body must be in valid JSON format.

Responses

Every response is JSON with the same envelope. See Errors for the format of failed requests.

FieldTypeDescription
statusBooleantrue when the request succeeded
codeInteger200 on success, otherwise a Vendy error code
msgStringA short description of the result
errorStringThe same value as msg
dataObject or ArrayThe result

Null fields

When no information is present, data fields may return null values:

{
    "status": true,
    "code": 200,
    "msg": "Transaction Sent",
    "error": "Transaction Sent",
    "data": {
      "refid": "1238912318231238",
      "vendref": null
    }
}