API documentation General

Contents

Server

There are two identical servers, one for testing, one for production use.
For testing purposes only sandbox server must be used!

Server Root URL
Production https://app.viaeurope.com/api
Sandbox https://app-sandbox.viaeurope.com/api

Authentication

Every API request must contain your API token in the following HTTP header:

Authorization: Token token="YOUR_API_KEY"

You get two API keys (production / sandbox), make sure to use the correct one. If the request response is code 401 Unauthorized, you did not provide the correct key. The production API key is only provided once integration and testing has been completed successfully.

Payload format

HTTP headers

Authorization: Token token="YOUR_API_KEY"
Content-Type: application/json
Accept: application/json

HTTP status codes

We make use of HTTP status codes to indicate success/failure of requests:

HTTP verbs

Where possible, API v4 strives to use appropriate HTTP verbs for each action.

Verb Description
GET Used for retrieving existing resources
POST Used for creating resources
PATCH Used for updating existing resources
DELETE Used for deleting resources

Rate limit