Skip to main content

Customer Portal API

StuStaPay Customer Portal API (0.1.0)

Download OpenAPI specification:Download

License: AGPL-3.0

auth

customer login with wristband hardware tag and pin

Request Body schema: application/json
required
pin
required
string (Pin)

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "customer": {
    },
  • "access_token": "string",
  • "grant_type": "bearer"
}

sign out of the current session

Authorizations:
OAuth2PasswordBearer

Responses

base

Obtain customer

Authorizations:
OAuth2PasswordBearer

Responses

Response samples

Content type
application/json
{
  • "node_id": 0,
  • "id": 0,
  • "type": "private",
  • "name": "string",
  • "comment": "string",
  • "balance": 0,
  • "vouchers": 0,
  • "user_tag_id": 0,
  • "user_tag_uid": 0,
  • "user_tag_comment": "string",
  • "restriction": "under_16",
  • "tag_history": [
    ],
  • "iban": "string",
  • "account_name": "string",
  • "email": "string",
  • "donation": 0,
  • "payout_export": true,
  • "user_tag_pin": "string",
  • "donate_all": true,
  • "has_entered_info": true,
  • "payout": {
    },
  • "user_tag_uid_hex": "string"
}

Obtain customer orders

Authorizations:
OAuth2PasswordBearer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

set iban, account name and email

Authorizations:
OAuth2PasswordBearer
Request Body schema: application/json
required
iban
required
string (Iban)
account_name
required
string (Account Name)
email
required
string (Email)
donation
number (Donation)
Default: 0

Responses

Request samples

Content type
application/json
{
  • "iban": "string",
  • "account_name": "string",
  • "email": "string",
  • "donation": 0
}

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

shortcut to declare that customer wants to donate all of the remaining balance

Authorizations:
OAuth2PasswordBearer

Responses

info about current state of payout

Authorizations:
OAuth2PasswordBearer

Responses

Response samples

Content type
application/json
{
  • "in_payout_run": true,
  • "payout_date": "2019-08-24T14:15:22Z"
}

transactions booked for payout if payout already happened

Authorizations:
OAuth2PasswordBearer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

get customer customer portal config

query Parameters
base_url
required
string (Base Url)

Responses

Response samples

Content type
application/json
{
  • "test_mode": true,
  • "test_mode_message": "string",
  • "data_privacy_url": "string",
  • "contact_email": "user@example.com",
  • "about_page_url": "string",
  • "payout_enabled": true,
  • "currency_identifier": "string",
  • "sumup_topup_enabled": true,
  • "allowed_country_codes": [
    ],
  • "translation_texts": {
    }
}

Retrieve a bon

path Parameters
order_uuid
required
string (Order Uuid)

Responses

Response samples

Content type
application/json
{
  • "order": {
    },
  • "tax_rate_aggregations": [
    ],
  • "config": {
    },
  • "currency_identifier": "string"
}

sumup

initiate customer checkout

Authorizations:
OAuth2PasswordBearer
Request Body schema: application/json
required
amount
required
number (Amount)

Responses

Request samples

Content type
application/json
{
  • "amount": 0
}

Response samples

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

after payment check checkout state

Authorizations:
OAuth2PasswordBearer
Request Body schema: application/json
required
checkout_id
required
string (Checkout Id)

Responses

Request samples

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

Response samples

Content type
application/json
{
  • "status": "PENDING"
}