Wgua.eu API (0.0.1)

Download OpenAPI specification:

API description of api.wgua.eu

List customers

Returns list of all registered customers.

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create a new customer

Creates a new customer returning all the data necessary for VPN connection.

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{
  • "customer_id": "string",
  • "endpoint": "string",
  • "ip_address": "string",
  • "peer_public_key": "string",
  • "private_key": "string",
  • "public_key": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "expires": "2019-08-24T14:15:22Z",
  • "active": true
}

Get a customer by ID

Returns customer data.

Authorizations:
ApiKeyAuth
path Parameters
customerId
required
string

Unique customer ID

Responses

Response samples

Content type
application/json
{
  • "customer_id": "string",
  • "endpoint": "string",
  • "ip_address": "string",
  • "peer_public_key": "string",
  • "private_key": "string",
  • "public_key": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "expires": "2019-08-24T14:15:22Z",
  • "active": true
}

Get customer recovery code

Returns customer recovery code

Authorizations:
ApiKeyAuth
path Parameters
customerId
required
string

Unique customer ID

Responses

Response samples

Content type
application/json
{
  • "recovery_code": "string"
}

Get customer ID by recovery code

Returns customer ID

Authorizations:
ApiKeyAuth
Request Body schema: application/json
recovery_code
string

Responses

Request samples

Content type
application/json
{
  • "recovery_code": "string"
}

Response samples

Content type
application/json
{
  • "customer_id": "string"
}

Create payment link for the customer

Payment link is valid for 24 hours. The expiration date/time is returned in expires field.

Authorizations:
ApiKeyAuth
path Parameters
customerId
required
string

Unique customer ID

Responses

Response samples

Content type
application/json
{
  • "url": "string",
  • "expires": "2019-08-24T14:15:22Z"
}

Show payment form

A page with user selectable payment options and links to payment system.

path Parameters
paymentReference
required
string

Unique payment reference

Responses

Response samples

Content type
application/json
{
  • "error": "string"
}