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. |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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) The monetary amount as a string rounded to whole, without decimal places with optional currency code. | ||||||||||||||
| overrideThresholdPlatformFeeAmount required | string <string> (Amount) 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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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 |
| inn required | string <text> (Inn) Individual tax payer number |
| name | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address | 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 | |
| bankCode | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder | 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 | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address | 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 | string <text> (Inn) Individual tax payer number |
| bankCode | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder | string <text> (BankAccountHolder) Bank account holder |
| createdAt | string <date-time> (DateTime) Date and time in RFC-3339 |
| updatedAt | string <date-time> (DateTime) Date and time in RFC-3339 |
{- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "inn": "000000000000",
- "name": "IP Bob Johnson's Gym",
- "address": "Saint-Petersburg, Russia",
- "phone": "+79991234567",
- "email": "example@email.com",
- "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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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 | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address | 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 | string <text> (Inn) Individual tax payer number |
| bankCode | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder | string <text> (BankAccountHolder) Bank account holder |
| createdAt | string <date-time> (DateTime) Date and time in RFC-3339 |
| updatedAt | 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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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 | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address | 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 | string <text> (Inn) Individual tax payer number |
| bankCode | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder | 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 | string <text> (RecipientName) Recipient name, used to fill in the name field in the payment receipt |
| address | 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 | string <text> (Inn) Individual tax payer number |
| bankCode | string <text> (BankCode) Bank code (a.k.a BIK) |
| bankAccountNumber | string <text> (BankAccountNumber) Bank account number |
| bankAccountHolder | string <text> (BankAccountHolder) Bank account holder |
| createdAt | string <date-time> (DateTime) Date and time in RFC-3339 |
| updatedAt | 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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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) 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 | ||||||
| athleteName | string <text> (AthleteName) Athlete Name | ||||||
| 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) 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",
- "athleteName": "John Doe"
}{- "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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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) 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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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) 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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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
}✨ Changes the payment status to EXPIRED or APPROVED.
DEV/STAGING ONLY: This endpoint must only be available in dev and staging environments for testing purposes. It must NOT be available in production. This endpoint allows manual status manipulation for testing payment flows.
| paymentId required | string <uuid> Example: paymentId=00000000-0000-1000-9000-510d9bb07630 The payment ID to update |
| status required | string (TestPaymentStatus) Enum: "EXPIRED" "APPROVED" Example: status=APPROVED New payment status |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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) 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"
}✨ Create new Remittance
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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) 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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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) 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. |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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. |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
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
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| x-current-user-id required | string <uuid> (AthleteId) Example: 00000000-0000-1000-9000-510d9bb07630 Athlete ID - user who pays money |
| coachId | string <uuid> (CoachId) Coach ID - user who receives money | ||||||
| orderId required | string <text> (OrderId) Order ID, uuid or text | ||||||
required | Array of objects (Service) | ||||||
Array
| |||||||
| coachId | string <uuid> (CoachId) Coach ID - user who receives money | ||||||||||||||||||
| 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. | ||||||||||||||||||
| platformIncomeAmount | string <string> (ExactAmount) ^\d+(?:\.\d{2})?( [A-Z]{3})?$ The monetary amount as a string with two decimal places with optional currency code. | ||||||||||||||||||
| vatPercentage required | string <string> (VatPercentage) The VAT percentage. Example: 20.00 | ||||||||||||||||||
required | Array of objects (ServicePrice) | ||||||||||||||||||
Array
| |||||||||||||||||||
{- "coachId": "00000000-0000-1000-9000-510d9bb07630",
- "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",
- "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",
- "platformIncomeAmount": "100.12 RUB",
- "vatPercentage": "20.00",
- "servicesPrices": [
- {
- "sessionId": "00000000-0000-1000-9000-510d9bb07630",
- "name": "Classic yoga session",
- "coachDueAmount": "100 RUB",
- "platformFeeAmount": "100 RUB",
- "totalAmount": "100 RUB",
- "platformIncomeAmount": "100 RUB",
- "vatAmount": "100.12 RUB",
- "vatPercentage": "20.00",
- "platformFeePercentage": "3.3355"
}
]
}✨ 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 |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
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
}✨ Get payment statements
| date required | string <date> (Date) Example: date=2024-11-29 The date to get the payment registry for. |
| downloadCsv | boolean Default: false |
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| 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": [
- {
- "rowNumber": 0,
- "paymentId": "00000000-0000-1000-9000-510d9bb07630",
- "paymentAthleteId": "00000000-0000-1000-9000-510d9bb07630",
- "paymentCoachId": "00000000-0000-1000-9000-510d9bb07630",
- "paymentBankConsumerId": "00000000-0000-1000-9000-510d9bb07630",
- "paymentOrderId": "00000000-0000-1000-9000-510d9bb07630",
- "paymentCreatedAt": "2024-11-29T12:09:53+00:00",
- "sessionTotalAmount": "100 RUB",
- "sessionDueAmount": "100 RUB",
- "sessionPlatformFeeAmount": "100 RUB",
- "sessionVatAmount": "100 RUB",
- "sessionService": "Personal training",
- "bankRegistryAmount": "100 RUB",
- "bankRegistryCommission": "100 RUB",
- "bankRegistryEnrollmentAmount": "100 RUB",
- "bankRegistryNumber": "123456",
- "bankRegistryOperationId": "00000000-0000-1000-9000-510d9bb07630",
- "bankRegistryPaymentType": "SBP",
- "bankRegistryPaymentLink": "https://merch.example.com/order/?uuid=16ea4c54-bf1d-4e6a-a1ef-53ad55666e43",
- "bankRegistryPurpose": "string",
- "bankRegistryStatus": "CREATED",
- "bankRegistryTime": "2024-11-29T12:09:53+00:00"
}
], - "count": 10,
- "page": 0,
- "limit": 10,
- "total": 1000
}✨ Verify tax status
| traceparent | string^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-... Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01 W3C Trace Context traceparent header for request tracing |
| x-current-user-id required | string <uuid> (CoachId) Example: 00000000-0000-1000-9000-510d9bb07630 Coach ID - user who receives money |
| taxInn required | string <text> (TaxInn) Individual tax payer number |
| firstName required | string <string> (FirstName) First name |
| lastName required | string <string> (LastName) Last name |
| middleName | string <string> (MiddleName) Middle name |
| taxStatus required | string (TaxStatus) Enum: "ELIGIBLE" "NOT_ELIGIBLE" "NAME_MISMATCH" Tax status |
| taxType required | string (TaxType) Enum: "INDIVIDUAL_ENTREPRENEUR" "SELF_EMPLOYED" "UNKNOWN" Tax status |
| name required | string <string> (TaxPayerName) Individual Entrepreneur name |
| taxInn required | string <text> (TaxInn) Individual tax payer number |
{- "taxInn": "000000000000",
- "firstName": "John",
- "lastName": "Doe",
- "middleName": "James"
}{- "taxStatus": "ELIGIBLE",
- "taxType": "INDIVIDUAL_ENTREPRENEUR",
- "name": "Individual Entrepreneur John Doe",
- "taxInn": "000000000000"
}