Pizzi API - Authorization server (pre-alpha)

Download OpenAPI specification:Download

This is the internal API authorization server documentation for the PizziPayment. You can find out more about Pizzi here.

Auth

Everything about authentication.

Login

Create an access token.

Authorizations:
BasicAuth
Request Body schema: application/json
One of
grant_type
required
string
Value: "password"
username
required
string

Email

password
required
string <password>

Password

Responses

Request samples

Content type
application/json
Example
{
  • "grant_type": "password",
  • "username": "test@test.eu",
  • "password": "Valid_passw0rd"
}

Response samples

Content type
application/json

Access token example

{
  • "access_token": "3ad18066641214f27c4d8bea380dbdeccd44c5d4",
  • "refresh_token": "bcbdedcbd8d206bf2654c8ff19149f6bfbf3a858",
  • "access_token_expires_at": "2022-04-19T20:52:21.548Z",
  • "refresh_token_expires_at": "2022-05-19T20:52:21.548Z"
}

Disconnect

Revoke token validity.

Authorizations:
BearerAuth

Responses

Response samples

Content type
application/json

Generic error

{
  • "source": "/source",
  • "message": "Human readable error"
}