e Ecovoy Developers
ecovoy.com Log in

Getting started

Make your first call to the Ecovoy API in a few minutes, using sandbox credentials. Nothing is charged in the sandbox.

1. Use your Ecovoy account

There is no separate developer signup. Log in with the same account you use on ecovoy.com. Your account acts as the organization that owns your applications, and its Ecovoy balance is the balance used in Production.

2. Create an application and sandbox credentials

  1. Open Dashboard → My applications → New application.
  2. On the application page, click Generate sandbox credentials.
  3. Copy the client_secret immediately and store it in a secret manager or environment variable. It is shown only once. If you lose it, generate a new one (the old one is revoked).

Sandbox credentials start with ecv_test_; Production credentials start with ecv_live_. A sandbox credential never works in Production, and vice versa.

3. Request an access token

Exchange the credentials for an access token on POST /oauth/token. Do this from your server only.

curl -X POST https://api.ecovoy.com/api/v2/oauth/token \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d grant_type=client_credentials \
  -d client_id=ecv_test_xxxxxxxxxxxxxxxxxxxxxxxx \
  -d client_secret=ecvs_test_xxxxxxxxxxxxxxxxxxxxxxxx
Response · 200
{
  "access_token": "ecvat_test_9f2c...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "scope": "account:read balance:read transactions:read topup:read topup:write",
  "environment": "sandbox"
}

4. Make your first API call

Send the token in the Authorization header. GET /me tells you which application, environment and scopes the token carries.

curl https://api.ecovoy.com/api/v2/me \
  -H "Authorization: Bearer ecvat_test_9f2c..."

Next, try a top-up lookup and a sandbox order.

5. Go to Production

When your integration works in the sandbox, click Request Production access on the application page. An Ecovoy administrator reviews every request manually. After approval you can generate Production (ecv_live_) credentials.

In Production, confirming a top-up order executes a real recharge and debits your Ecovoy balance. An order can be cancelled with /cancel-transaction only before it is confirmed. See Products and services.