Download OpenAPI specification:
LE-KO Payment
✨ Get earnings
| cool_down_days | integer <integer> (CoolDownDays) Example: cool_down_days=6 The number of days ago to calculate the time period, defaults to 6 for col down period. |
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money | ||||||||||||||
required | object (Balance) Balance for a period. | ||||||||||||||
| |||||||||||||||
required | object (Balance) Balance for a period. | ||||||||||||||
| |||||||||||||||
| thresholdAmount required | string <string> (Amount) ^\d+?( [A-Z]{3})?$ The monetary amount as a string rounded to whole, without decimal places with optional currency code. | ||||||||||||||
| overrideThresholdPlatformFeeAmount required | string <string> (Amount) ^\d+?( [A-Z]{3})?$ The monetary amount as a string rounded to whole, without decimal places with optional currency code. | ||||||||||||||
| coolDownDays required | integer <integer> (CoolDownDays) The number of days ago to calculate the time period, defaults to 6 for col down period. | ||||||||||||||
{- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "totalBalance": {
- "amount": "100 RUB",
- "firstPaymentCreatedAt": "2024-11-29T12:09:53+00:00",
- "lastPaymentCreatedAt": "2024-11-29T12:09:53+00:00",
- "timePeriod": {
- "start": "2024-11-29T12:09:53+00:00",
- "end": "2024-11-29T12:09:53+00:00"
}
}, - "availableBalance": {
- "amount": "100 RUB",
- "firstPaymentCreatedAt": "2024-11-29T12:09:53+00:00",
- "lastPaymentCreatedAt": "2024-11-29T12:09:53+00:00",
- "timePeriod": {
- "start": "2024-11-29T12:09:53+00:00",
- "end": "2024-11-29T12:09:53+00:00"
}
}, - "thresholdAmount": "100 RUB",
- "overrideThresholdPlatformFeeAmount": "100 RUB",
- "coolDownDays": 6
}✨ Get recipients
| page | integer (PageNumber) >= 0 Default: 0 Example: page=0 Page number |
| limit | integer (Limit) [ 1 .. 100 ] Default: 10 Example: limit=10 Page limit |
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
required | Array of objects | ||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||
| count required | integer (Count) Page entries count | ||||||||||||||||||||||||
| page required | integer (PageNumber) >= 0 Default: 0 Page number | ||||||||||||||||||||||||
| limit required | integer (Limit) [ 1 .. 100 ] Default: 10 Page limit | ||||||||||||||||||||||||
| total required | integer (Total) >= 0 Default: 0 Total count | ||||||||||||||||||||||||
{- "data": [
- {
- "recipientId": "00000000-0000-1000-9000-510d9bb07630",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "name": "IP Bob Johnson's Gym",
- "address": "Saint-Petersburg, Russia",
- "phone": "+79991234567",
- "email": "example@email.com",
- "inn": "000000000000",
- "bankCode": "200000000001056",
- "bankAccountNumber": "1234567890",
- "bankAccountHolder": "John Doe",
- "createdAt": "2024-11-29T12:09:53+00:00",
- "updatedAt": "2024-11-29T12:09:53+00:00"
}
], - "count": 10,
- "page": 0,
- "limit": 10,
- "total": 1000
}✨ Create new Recipient
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money |
| name required | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address required | string <text> (RecipientAddress) Recipient address, used to fill in the address field in the payment receipt |
| phone | string <text> (RecipientPhone) Recipient phone number, used to fill in the phone number field in the payment receipt |
string <text> (RecipientEmail) Recipient email, used to fill in the email field in the payment receipt | |
| inn required | string <text> (Inn) Individual tax payer number |
| bankCode required | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber required | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder required | string <text> (BankAccountHolder) Bank account holder |
| recipientId required | string <uuid> (RecipientId) Recipient ID |
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money |
| name required | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address required | string <text> (RecipientAddress) Recipient address, used to fill in the address field in the payment receipt |
| phone | string <text> (RecipientPhone) Recipient phone number, used to fill in the phone number field in the payment receipt |
string <text> (RecipientEmail) Recipient email, used to fill in the email field in the payment receipt | |
| inn required | string <text> (Inn) Individual tax payer number |
| bankCode required | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber required | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder required | string <text> (BankAccountHolder) Bank account holder |
| createdAt required | string <date-time> (DateTime) Date and time in RFC-3339 |
| updatedAt required | string <date-time> (DateTime) Date and time in RFC-3339 |
{- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "name": "IP Bob Johnson's Gym",
- "address": "Saint-Petersburg, Russia",
- "phone": "+79991234567",
- "email": "example@email.com",
- "inn": "000000000000",
- "bankCode": "200000000001056",
- "bankAccountNumber": "1234567890",
- "bankAccountHolder": "John Doe"
}{- "recipientId": "00000000-0000-1000-9000-510d9bb07630",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "name": "IP Bob Johnson's Gym",
- "address": "Saint-Petersburg, Russia",
- "phone": "+79991234567",
- "email": "example@email.com",
- "inn": "000000000000",
- "bankCode": "200000000001056",
- "bankAccountNumber": "1234567890",
- "bankAccountHolder": "John Doe",
- "createdAt": "2024-11-29T12:09:53+00:00",
- "updatedAt": "2024-11-29T12:09:53+00:00"
}✨ Get Recipient by id
| recipientId required | string <uuid> (RecipientId) Example: 00000000-0000-1000-9000-510d9bb07630 Recipient ID |
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
| recipientId required | string <uuid> (RecipientId) Recipient ID |
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money |
| name required | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address required | string <text> (RecipientAddress) Recipient address, used to fill in the address field in the payment receipt |
| phone | string <text> (RecipientPhone) Recipient phone number, used to fill in the phone number field in the payment receipt |
string <text> (RecipientEmail) Recipient email, used to fill in the email field in the payment receipt | |
| inn required | string <text> (Inn) Individual tax payer number |
| bankCode required | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber required | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder required | string <text> (BankAccountHolder) Bank account holder |
| createdAt required | string <date-time> (DateTime) Date and time in RFC-3339 |
| updatedAt required | string <date-time> (DateTime) Date and time in RFC-3339 |
{- "recipientId": "00000000-0000-1000-9000-510d9bb07630",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "name": "IP Bob Johnson's Gym",
- "address": "Saint-Petersburg, Russia",
- "phone": "+79991234567",
- "email": "example@email.com",
- "inn": "000000000000",
- "bankCode": "200000000001056",
- "bankAccountNumber": "1234567890",
- "bankAccountHolder": "John Doe",
- "createdAt": "2024-11-29T12:09:53+00:00",
- "updatedAt": "2024-11-29T12:09:53+00:00"
}✨ Update Recipient
| recipientId required | string <uuid> (RecipientId) Example: 00000000-0000-1000-9000-510d9bb07630 Recipient ID |
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money |
| name required | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address required | string <text> (RecipientAddress) Recipient address, used to fill in the address field in the payment receipt |
| phone | string <text> (RecipientPhone) Recipient phone number, used to fill in the phone number field in the payment receipt |
string <text> (RecipientEmail) Recipient email, used to fill in the email field in the payment receipt | |
| inn required | string <text> (Inn) Individual tax payer number |
| bankCode required | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber required | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder required | string <text> (BankAccountHolder) Bank account holder |
| recipientId required | string <uuid> (RecipientId) Recipient ID |
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money |
| name required | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address required | string <text> (RecipientAddress) Recipient address, used to fill in the address field in the payment receipt |
| phone | string <text> (RecipientPhone) Recipient phone number, used to fill in the phone number field in the payment receipt |
string <text> (RecipientEmail) Recipient email, used to fill in the email field in the payment receipt | |
| inn required | string <text> (Inn) Individual tax payer number |
| bankCode required | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber required | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder required | string <text> (BankAccountHolder) Bank account holder |
| createdAt required | string <date-time> (DateTime) Date and time in RFC-3339 |
| updatedAt required | string <date-time> (DateTime) Date and time in RFC-3339 |
{- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "name": "IP Bob Johnson's Gym",
- "address": "Saint-Petersburg, Russia",
- "phone": "+79991234567",
- "email": "example@email.com",
- "inn": "000000000000",
- "bankCode": "200000000001056",
- "bankAccountNumber": "1234567890",
- "bankAccountHolder": "John Doe"
}{- "recipientId": "00000000-0000-1000-9000-510d9bb07630",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "name": "IP Bob Johnson's Gym",
- "address": "Saint-Petersburg, Russia",
- "phone": "+79991234567",
- "email": "example@email.com",
- "inn": "000000000000",
- "bankCode": "200000000001056",
- "bankAccountNumber": "1234567890",
- "bankAccountHolder": "John Doe",
- "createdAt": "2024-11-29T12:09:53+00:00",
- "updatedAt": "2024-11-29T12:09:53+00:00"
}✨ Get payments
| page | integer (PageNumber) >= 0 Default: 0 Example: page=0 Page number |
| limit | integer (Limit) [ 1 .. 100 ] Default: 10 Example: limit=10 Page limit |
| orderId | string <text> (OrderId) Example: orderId=00000000-0000-1000-9000-510d9bb07630 Order ID, uuid or text |
| x-current-user-id required | string <uuid> (AthleteId) Example: 00000000-0000-1000-9000-510d9bb07630 Athlete ID - user who pays money |
required | Array of objects | ||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||
| count required | integer (Count) Page entries count | ||||||||||||||||||||||||
| page required | integer (PageNumber) >= 0 Default: 0 Page number | ||||||||||||||||||||||||
| limit required | integer (Limit) [ 1 .. 100 ] Default: 10 Page limit | ||||||||||||||||||||||||
| total required | integer (Total) >= 0 Default: 0 Total count | ||||||||||||||||||||||||
{- "data": [
- {
- "paymentId": "00000000-0000-1000-9000-510d9bb07630",
- "externalId": "00000000-0000-1000-9000-510d9bb07630",
- "orderId": "00000000-0000-1000-9000-510d9bb07630",
- "athleteId": "00000000-0000-1000-9000-510d9bb07630",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "amount": "100 RUB",
- "purpose": "Training sessions with a coach",
- "status": "CREATED",
- "operation": { },
- "createdAt": "2024-11-29T12:09:53+00:00"
}
], - "count": 10,
- "page": 0,
- "limit": 10,
- "total": 1000
}✨ Create new Payment
| x-current-user-id required | string <uuid> (AthleteId) Example: 00000000-0000-1000-9000-510d9bb07630 Athlete ID - user who pays money |
| totalAmount required | string <string> (Amount) ^\d+?( [A-Z]{3})?$ The monetary amount as a string rounded to whole, without decimal places with optional currency code. | ||||||
| purpose required | string (Purpose) Payment Purpose | ||||||
| orderId required | string <text> (OrderId) Order ID, uuid or text | ||||||
Array of objects (Service) | |||||||
Array
| |||||||
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money | ||||||
| sendReceiptTo | string (SendReceiptTo) Email or phone number to send the receipt to, optional if recipient email or phone number is provided | ||||||
| paymentId required | string <uuid> (PaymentId) Payment ID |
| externalId required | string <uuid> (ExternalId) External Payment ID |
| orderId required | string <text> (OrderId) Order ID, uuid or text |
| athleteId required | string <uuid> (AthleteId) Athlete ID - user who pays money |
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money |
| amount required | string <string> (Amount) ^\d+?( [A-Z]{3})?$ The monetary amount as a string rounded to whole, without decimal places with optional currency code. |
| purpose required | string (Purpose) Payment Purpose |
| status required | string (PaymentStatus) Enum: "CREATED" "PAID" "REFUNDED" "FAILED" "CAPTURED" Payment Status |
| paymentLink | string <uri> (PaymentLink) Payment link, used to redirect the user to the payment page, not empty for just created payments |
| receiptLink | string <uri> (ReceiptLink) Receipt link, used to redirect the user to the receipt page, not empty for paid payments |
| operation | object (OperationData) Payment operation data can be anything, present only if payment requested by id with includeOperation query parameter |
| createdAt required | string <date-time> (DateTime) Date and time in RFC-3339 |
{- "totalAmount": "100 RUB",
- "purpose": "Training sessions with a coach",
- "orderId": "00000000-0000-1000-9000-510d9bb07630",
- "services": [
- {
- "coachDueAmount": "100 RUB",
- "name": "Classic yoga session",
- "sessionId": "00000000-0000-1000-9000-510d9bb07630"
}
], - "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "sendReceiptTo": "+79991234567 or example@email.com"
}{- "paymentId": "00000000-0000-1000-9000-510d9bb07630",
- "externalId": "00000000-0000-1000-9000-510d9bb07630",
- "orderId": "00000000-0000-1000-9000-510d9bb07630",
- "athleteId": "00000000-0000-1000-9000-510d9bb07630",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "amount": "100 RUB",
- "purpose": "Training sessions with a coach",
- "status": "CREATED",
- "operation": { },
- "createdAt": "2024-11-29T12:09:53+00:00"
}✨ Get Payment by id
| paymentId required | string <uuid> (PaymentId) Example: 00000000-0000-1000-9000-510d9bb07630 Payment ID |
| includeOperation | boolean Default: false |
| x-current-user-id required | string <uuid> (AthleteId) Example: 00000000-0000-1000-9000-510d9bb07630 Athlete ID - user who pays money |
| paymentId required | string <uuid> (PaymentId) Payment ID |
| externalId required | string <uuid> (ExternalId) External Payment ID |
| orderId required | string <text> (OrderId) Order ID, uuid or text |
| athleteId required | string <uuid> (AthleteId) Athlete ID - user who pays money |
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money |
| amount required | string <string> (Amount) ^\d+?( [A-Z]{3})?$ The monetary amount as a string rounded to whole, without decimal places with optional currency code. |
| purpose required | string (Purpose) Payment Purpose |
| status required | string (PaymentStatus) Enum: "CREATED" "PAID" "REFUNDED" "FAILED" "CAPTURED" Payment Status |
| paymentLink | string <uri> (PaymentLink) Payment link, used to redirect the user to the payment page, not empty for just created payments |
| receiptLink | string <uri> (ReceiptLink) Receipt link, used to redirect the user to the receipt page, not empty for paid payments |
| operation | object (OperationData) Payment operation data can be anything, present only if payment requested by id with includeOperation query parameter |
| createdAt required | string <date-time> (DateTime) Date and time in RFC-3339 |
{- "paymentId": "00000000-0000-1000-9000-510d9bb07630",
- "externalId": "00000000-0000-1000-9000-510d9bb07630",
- "orderId": "00000000-0000-1000-9000-510d9bb07630",
- "athleteId": "00000000-0000-1000-9000-510d9bb07630",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "amount": "100 RUB",
- "purpose": "Training sessions with a coach",
- "status": "CREATED",
- "operation": { },
- "createdAt": "2024-11-29T12:09:53+00:00"
}✨ Refund Payment
| paymentId required | string <uuid> (PaymentId) Example: 00000000-0000-1000-9000-510d9bb07630 Payment ID |
| x-current-user-id required | string <uuid> (AthleteId) Example: 00000000-0000-1000-9000-510d9bb07630 Athlete ID - user who pays money |
| paymentId required | string <uuid> (PaymentId) Payment ID |
| sessionId | string <text> (SessionId) Training session ID, uuid or text |
| sendReceiptTo | string (SendReceiptTo) Email or phone number to send the receipt to, optional if recipient email or phone number is provided |
| isRefunded required | boolean |
| paymentId required | string <uuid> (PaymentId) Payment ID |
| sessionId | string <text> (SessionId) Training session ID, uuid or text |
| orderId required | string <text> (OrderId) Order ID, uuid or text |
| amount required | string <string> (Amount) ^\d+?( [A-Z]{3})?$ The monetary amount as a string rounded to whole, without decimal places with optional currency code. |
| date required | string <date> (Date) Date in RFC-3339 format (YYYY-MM-DD) |
{- "paymentId": "00000000-0000-1000-9000-510d9bb07630",
- "sessionId": "00000000-0000-1000-9000-510d9bb07630",
- "sendReceiptTo": "+79991234567 or example@email.com"
}{- "isRefunded": true,
- "paymentId": "00000000-0000-1000-9000-510d9bb07630",
- "sessionId": "00000000-0000-1000-9000-510d9bb07630",
- "orderId": "00000000-0000-1000-9000-510d9bb07630",
- "amount": "100 RUB",
- "date": "2024-11-29"
}✨ Capture Payment
| paymentId required | string <uuid> (PaymentId) Example: 00000000-0000-1000-9000-510d9bb07630 Payment ID |
| x-current-user-id required | string <uuid> (AthleteId) Example: 00000000-0000-1000-9000-510d9bb07630 Athlete ID - user who pays money |
| result required | boolean |
{- "result": true
}✨ Create new Remittance
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
| availableAmount required | string <string> (AvailableAmount) The available amount of payments to cash out. Taken from earnings object. |
| thresholdOverrideByFee required | boolean Default: false Whether to override the threshold by fee. Defaults to false. If true, the fee will be deducted from remittance amount. |
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money |
| remittanceId required | string <uuid> (RemittanceId) Remittance ID | ||||||
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money | ||||||
| bankAcc required | string Bank account number | ||||||
| bankBik required | string Bank BIK number | ||||||
| recipientInn required | string Recipient INN number | ||||||
| recipientName required | string Recipient name | ||||||
required | object (AmountBreakdown) | ||||||
| |||||||
| thresholdAmount required | string <string> (Amount) ^\d+?( [A-Z]{3})?$ The monetary amount as a string rounded to whole, without decimal places with optional currency code. | ||||||
| platformFeePercent required | number Platform fee percent | ||||||
| status required | string (RemittanceStatus) Enum: "WAITING" "FAILURE" "COMPLETE" "DELETED" Remittance Status | ||||||
| createdAt required | string <date-time> (DateTime) Date and time in RFC-3339 | ||||||
| updatedAt required | string <date-time> (DateTime) Date and time in RFC-3339 | ||||||
{- "availableAmount": "100.00 RUB",
- "thresholdOverrideByFee": false,
- "coachId": "00000000-0000-1000-9000-510d9bb07630"
}{- "remittanceId": "00000000-0000-1000-9000-510d9bb07630",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "bankAcc": "string",
- "bankBik": "string",
- "recipientInn": "string",
- "recipientName": "string",
- "amountBreakdown": {
- "dueAmount": "100 RUB",
- "paidAmount": "100 RUB",
- "feeAmount": "100 RUB"
}, - "thresholdAmount": "100 RUB",
- "platformFeePercent": 0,
- "status": "WAITING",
- "createdAt": "2024-11-29T12:09:53+00:00",
- "updatedAt": "2024-11-29T12:09:53+00:00"
}✨ Get Remittance by id
| remittanceId required | string <uuid> (RemittanceId) Example: 00000000-0000-1000-9000-510d9bb07630 Remittance ID |
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
| remittanceId required | string <uuid> (RemittanceId) Remittance ID | ||||||
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money | ||||||
| bankAcc required | string Bank account number | ||||||
| bankBik required | string Bank BIK number | ||||||
| recipientInn required | string Recipient INN number | ||||||
| recipientName required | string Recipient name | ||||||
required | object (AmountBreakdown) | ||||||
| |||||||
| thresholdAmount required | string <string> (Amount) ^\d+?( [A-Z]{3})?$ The monetary amount as a string rounded to whole, without decimal places with optional currency code. | ||||||
| platformFeePercent required | number Platform fee percent | ||||||
| status required | string (RemittanceStatus) Enum: "WAITING" "FAILURE" "COMPLETE" "DELETED" Remittance Status | ||||||
| createdAt required | string <date-time> (DateTime) Date and time in RFC-3339 | ||||||
| updatedAt required | string <date-time> (DateTime) Date and time in RFC-3339 | ||||||
{- "remittanceId": "00000000-0000-1000-9000-510d9bb07630",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "bankAcc": "string",
- "bankBik": "string",
- "recipientInn": "string",
- "recipientName": "string",
- "amountBreakdown": {
- "dueAmount": "100 RUB",
- "paidAmount": "100 RUB",
- "feeAmount": "100 RUB"
}, - "thresholdAmount": "100 RUB",
- "platformFeePercent": 0,
- "status": "WAITING",
- "createdAt": "2024-11-29T12:09:53+00:00",
- "updatedAt": "2024-11-29T12:09:53+00:00"
}✨ Get operations
| page | integer (PageNumber) >= 0 Default: 0 Example: page=0 Page number |
| limit | integer (Limit) [ 1 .. 100 ] Default: 10 Example: limit=10 Page limit |
| start_date | string <date> (Date) Example: start_date=2024-11-29 The start date, defaults to current week start. |
| end_date | string <date> (Date) Example: end_date=2024-11-29 The end date, defaults to today. |
| type | string (OperationType) Enum: "ALL" "INCOME" "PAYOUT" The type of the operation/transaction. |
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
required | Array of objects | ||||||||||||
Array
| |||||||||||||
| count required | integer (Count) Page entries count | ||||||||||||
| page required | integer (PageNumber) >= 0 Default: 0 Page number | ||||||||||||
| limit required | integer (Limit) [ 1 .. 100 ] Default: 10 Page limit | ||||||||||||
| total required | integer (Total) >= 0 Default: 0 Total count | ||||||||||||
{- "data": [
- {
- "operationId": "00000000-0000-1000-9000-510d9bb07630",
- "operationType": "ALL",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "createdAt": "2024-11-29T12:09:53+00:00",
- "updatedAt": "2024-11-29T12:09:53+00:00",
- "operation": {
- "paymentId": "00000000-0000-1000-9000-510d9bb07630",
- "externalId": "00000000-0000-1000-9000-510d9bb07630",
- "orderId": "00000000-0000-1000-9000-510d9bb07630",
- "athleteId": "00000000-0000-1000-9000-510d9bb07630",
- "amount": "100 RUB",
- "purpose": "Training sessions with a coach",
- "status": "CREATED",
}
}
], - "count": 10,
- "page": 0,
- "limit": 10,
- "total": 1000
}✨ Get operation by id
| operationId required | string <uuid> (OperationId) Example: 00000000-0000-1000-9000-510d9bb07630 Operation ID |
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
| operationId required | string <uuid> (OperationId) Operation ID | ||||||||||||||||
| operationType required | string (OperationType) Enum: "ALL" "INCOME" "PAYOUT" The type of the operation/transaction. | ||||||||||||||||
| coachId required | string <uuid> (CoachId) Coach ID - user who receives money | ||||||||||||||||
| createdAt required | string <date-time> (DateTime) Date and time in RFC-3339 | ||||||||||||||||
| updatedAt required | string <date-time> (DateTime) Date and time in RFC-3339 | ||||||||||||||||
PaymentOperation (object) or RemittanceOperation (object) | |||||||||||||||||
One of
| |||||||||||||||||
{- "operationId": "00000000-0000-1000-9000-510d9bb07630",
- "operationType": "ALL",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "createdAt": "2024-11-29T12:09:53+00:00",
- "updatedAt": "2024-11-29T12:09:53+00:00",
- "operation": {
- "paymentId": "00000000-0000-1000-9000-510d9bb07630",
- "externalId": "00000000-0000-1000-9000-510d9bb07630",
- "orderId": "00000000-0000-1000-9000-510d9bb07630",
- "athleteId": "00000000-0000-1000-9000-510d9bb07630",
- "amount": "100 RUB",
- "purpose": "Training sessions with a coach",
- "status": "CREATED",
}
}✨ Get settings
| name | string (Name) Example: name=cool-setting The setting name. |
required | Array of objects (Settings) | ||||||||||||
Array
| |||||||||||||
{- "settings": [
- {
- "id": "00000000-0000-1000-9000-510d9bb07630",
- "name": "cool-setting",
- "values": {
- "key1": "value1",
- "key2": "value2"
}, - "active": true,
- "createdAt": "2024-11-29T12:09:53+00:00",
- "updatedAt": "2024-11-29T12:09:53+00:00"
}
]
}✨ Callback
| callback_type required | string (CallbackType) Enum: "PAYMENT" "RECEIPT" The type of the callback. |
| status required | string (CallbackStatus) Enum: "SUCCESS" "FAILURE" The status of the operation. |
| tracking_id required | string <text> (TrackingId) Example: tracking_id=tracking_123 The tracking ID of the callback. |
| callbackType required | string (CallbackType) Enum: "PAYMENT" "RECEIPT" The type of the callback. |
| status required | string (CallbackStatus) Enum: "SUCCESS" "FAILURE" The status of the callback. |
| trackingId required | string <text> (TrackingId) Tracking ID |
{- "callbackType": "PAYMENT",
- "status": "SUCCESS",
- "trackingId": "tracking_123"
}✨ Callback
| callback_type required | string (CallbackType) Enum: "PAYMENT" "RECEIPT" The type of the callback. |
| status required | string (CallbackStatus) Enum: "SUCCESS" "FAILURE" The status of the operation. |
| tracking_id required | string <text> (TrackingId) Example: tracking_id=tracking_123 The tracking ID of the callback. |
The payload of the callback.
| callbackType required | string (CallbackType) Enum: "PAYMENT" "RECEIPT" The type of the callback. |
| status required | string (CallbackStatus) Enum: "SUCCESS" "FAILURE" The status of the callback. |
| trackingId required | string <text> (TrackingId) Tracking ID |
{ }{- "callbackType": "PAYMENT",
- "status": "SUCCESS",
- "trackingId": "tracking_123"
}✨ Calculate price
| x-current-user-id required | string <uuid> (AthleteId) Example: 00000000-0000-1000-9000-510d9bb07630 Athlete ID - user who pays money |
| orderId required | string <text> (OrderId) Order ID, uuid or text | ||||||
required | Array of objects (Service) | ||||||
Array
| |||||||
| orderId required | string <text> (OrderId) Order ID, uuid or text | ||||||||||||||||
| coachDueAmount required | string <string> (ExactAmount) ^\d+(?:\.\d{2})?( [A-Z]{3})?$ The monetary amount as a string with two decimal places with optional currency code. | ||||||||||||||||
| platformFeeAmount required | string <string> (ExactAmount) ^\d+(?:\.\d{2})?( [A-Z]{3})?$ The monetary amount as a string with two decimal places with optional currency code. | ||||||||||||||||
| totalAmount required | string <string> (ExactAmount) ^\d+(?:\.\d{2})?( [A-Z]{3})?$ The monetary amount as a string with two decimal places with optional currency code. | ||||||||||||||||
| vatAmount | string <string> (ExactAmount) ^\d+(?:\.\d{2})?( [A-Z]{3})?$ The monetary amount as a string with two decimal places with optional currency code. | ||||||||||||||||
| platformFeePercentage required | string <string> (PlatformFeePercentage) The fee percentage. | ||||||||||||||||
| vatPercentage required | string <string> (VatPercentage) The VAT percentage. Example: 20.00 | ||||||||||||||||
required | Array of objects (ServicePrice) | ||||||||||||||||
Array
| |||||||||||||||||
{- "orderId": "00000000-0000-1000-9000-510d9bb07630",
- "services": [
- {
- "coachDueAmount": "100 RUB",
- "name": "Classic yoga session",
- "sessionId": "00000000-0000-1000-9000-510d9bb07630"
}
]
}{- "orderId": "00000000-0000-1000-9000-510d9bb07630",
- "coachDueAmount": "100.12 RUB",
- "platformFeeAmount": "100.12 RUB",
- "totalAmount": "100.12 RUB",
- "vatAmount": "100.12 RUB",
- "platformFeePercentage": "3.3355",
- "vatPercentage": "20.00",
- "servicesPrices": [
- {
- "sessionId": "00000000-0000-1000-9000-510d9bb07630",
- "name": "Classic yoga session",
- "coachDueAmount": "100 RUB",
- "platformFeeAmount": "100 RUB",
- "totalAmount": "100 RUB",
- "vatAmount": "100.12 RUB",
- "vatPercentage": "20.00",
- "platformFeePercentage": "3.3355"
}
]
}✨ Get upstreams
| page | integer (PageNumber) >= 0 Default: 0 Example: page=0 Page number |
| limit | integer (Limit) [ 1 .. 100 ] Default: 10 Example: limit=10 Page limit |
| name required | string (UpstreamName) Enum: "tochka_acquiring" "firstofd" "tochka_b2b_registry" Example: name=tochka_acquiring The upstream name. |
required | Array of objects | ||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||
| count required | integer (Count) Page entries count | ||||||||||||||||||||||||
| page required | integer (PageNumber) >= 0 Default: 0 Page number | ||||||||||||||||||||||||
| limit required | integer (Limit) [ 1 .. 100 ] Default: 10 Page limit | ||||||||||||||||||||||||
| total required | integer (Total) >= 0 Default: 0 Total count | ||||||||||||||||||||||||
{- "data": [
- {
- "id": "00000000-0000-1000-9000-510d9bb07630",
- "name": "tochka_acquiring",
- "trackingId": "tracking_123",
- "request": {
- "key1": "value1",
- "key2": "value2"
}, - "response": {
- "key1": "value1",
- "key2": "value2"
}, - "method": "GET",
- "scheme": "string",
- "host": "string",
- "path": "string",
- "query": "string",
- "statusCode": 0,
- "createdAt": "2024-11-29T12:09:53+00:00"
}
], - "count": 10,
- "page": 0,
- "limit": 10,
- "total": 1000
}✨ Get documents by type and filters
| type required | string Value: "act" Document type filter |
| order_id | string <uuid> Filter documents by order ID |
| session_id | string <uuid> Filter documents by session ID |
| page | integer (PageNumber) >= 0 Default: 0 Example: page=0 Page number |
| limit | integer (Limit) [ 1 .. 100 ] Default: 10 Example: limit=10 Page limit |
required | Array of objects | ||||||||||||||||||||
Array
| |||||||||||||||||||||
| count required | integer (Count) Page entries count | ||||||||||||||||||||
| page required | integer (PageNumber) >= 0 Default: 0 Page number | ||||||||||||||||||||
| limit required | integer (Limit) [ 1 .. 100 ] Default: 10 Page limit | ||||||||||||||||||||
| total required | integer (Total) >= 0 Default: 0 Total count | ||||||||||||||||||||
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c",
- "bookingId": "9a471128-954e-4e64-bde9-e8147015df89",
- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "athleteId": "69552696-5b24-4200-805d-78e46a91f565",
- "documentType": "act_coach",
- "s3Key": "string",
- "fileName": "string",
- "createdAt": "2024-11-29T12:09:53+00:00"
}
], - "count": 10,
- "page": 0,
- "limit": 10,
- "total": 1000
}