Payment types
Finance · 3 operations
GET
List payment types
/api/type-of-paymentPayment types (cash, card, transfer and so on) for finance operations.
list_types_of_payment
Query parameters · 5
pagemin 1 · default 1pageSize1–250 · default 20nameOfTypeOfPaymentlength max 150isArchivaldefault falsetypeOfPaymentIds—Response · 200
application/json
statusCodeexample 200message—data4 fields
total—totalPages—currentPage—typesOfPayment7 fields
typeOfPaymentId—nameOfTypeOfPayment—note—order—isArchival—updatedAtformat YYYY-MM-DDTHH:mm:sscreatedAtformat YYYY-MM-DDTHH:mm:sscurl "https://your-school.rist.pro/api/type-of-payment?nameOfTypeOfPayment=string&isArchival=false&typeOfPaymentIds=1" \
-H "Authorization: Bearer $RIST_API_KEY"const response = await fetch("https://your-school.rist.pro/api/type-of-payment?nameOfTypeOfPayment=string&isArchival=false&typeOfPaymentIds=1", {
headers: {
Authorization: `Bearer ${process.env.RIST_API_KEY}`,
},
});
const { data } = await response.json();import os
import requests
response = requests.get(
"https://your-school.rist.pro/api/type-of-payment",
headers={"Authorization": f"Bearer {os.environ['RIST_API_KEY']}"},
params={
"nameOfTypeOfPayment": "string",
"isArchival": False,
"typeOfPaymentIds": [
1
]
},
)
response.raise_for_status()
data = response.json()["data"]Response example · 200
{
"statusCode": 200,
"message": "Operation completed successfully",
"data": {
"total": 0,
"totalPages": 0,
"currentPage": 0,
"typesOfPayment": [
{
"typeOfPaymentId": 1,
"nameOfTypeOfPayment": "string",
"note": "string",
"order": 0,
"isArchival": false,
"updatedAt": "2026-11-09T14:30:00",
"createdAt": "2026-11-09T14:30:00"
}
]
}
}POST
Create payment method
/api/type-of-paymentAdd a way students pay, e.g. "Cash" or "Card" (name, optional note).
create_type_of_payment
Request body
application/json · object
nameOfTypeOfPaymentlength 1–150notelength max 1500Response · 201
application/json
statusCodeexample 201message—data7 fields
typeOfPaymentId—nameOfTypeOfPayment—note—order—isArchival—updatedAtformat YYYY-MM-DDTHH:mm:sscreatedAtformat YYYY-MM-DDTHH:mm:sscurl -X POST "https://your-school.rist.pro/api/type-of-payment" \
-H "Authorization: Bearer $RIST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"nameOfTypeOfPayment": "string",
"note": "string"
}'const response = await fetch("https://your-school.rist.pro/api/type-of-payment", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.RIST_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"nameOfTypeOfPayment": "string",
"note": "string"
}),
});
const { data } = await response.json();import os
import requests
response = requests.post(
"https://your-school.rist.pro/api/type-of-payment",
headers={"Authorization": f"Bearer {os.environ['RIST_API_KEY']}"},
json={
"nameOfTypeOfPayment": "string",
"note": "string"
},
)
response.raise_for_status()
data = response.json()["data"]Response example · 201
{
"statusCode": 201,
"message": "Operation completed successfully",
"data": {
"typeOfPaymentId": 1,
"nameOfTypeOfPayment": "string",
"note": "string",
"order": 0,
"isArchival": false,
"updatedAt": "2026-11-09T14:30:00",
"createdAt": "2026-11-09T14:30:00"
}
}PUT
Update payment method
/api/type-of-payment/{id}Change name or note of a payment method; name is always required.
update_type_of_payment
Path parameters · 1
id—Request body
application/json · object
nameOfTypeOfPaymentlength 1–150notelength max 1500Response · 200
application/json
statusCodeexample 200message—data7 fields
typeOfPaymentId—nameOfTypeOfPayment—note—order—isArchival—updatedAtformat YYYY-MM-DDTHH:mm:sscreatedAtformat YYYY-MM-DDTHH:mm:sscurl -X PUT "https://your-school.rist.pro/api/type-of-payment/1" \
-H "Authorization: Bearer $RIST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"nameOfTypeOfPayment": "string",
"note": "string"
}'const response = await fetch("https://your-school.rist.pro/api/type-of-payment/1", {
method: "PUT",
headers: {
Authorization: `Bearer ${process.env.RIST_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"nameOfTypeOfPayment": "string",
"note": "string"
}),
});
const { data } = await response.json();import os
import requests
response = requests.put(
"https://your-school.rist.pro/api/type-of-payment/1",
headers={"Authorization": f"Bearer {os.environ['RIST_API_KEY']}"},
json={
"nameOfTypeOfPayment": "string",
"note": "string"
},
)
response.raise_for_status()
data = response.json()["data"]Response example · 200
{
"statusCode": 200,
"message": "Operation completed successfully",
"data": {
"typeOfPaymentId": 1,
"nameOfTypeOfPayment": "string",
"note": "string",
"order": 0,
"isArchival": false,
"updatedAt": "2026-11-09T14:30:00",
"createdAt": "2026-11-09T14:30:00"
}
}