Channels API
Endpoints for managing payment channels.
List Channels
GET /api/channel/list
Response
{
"code": 200,
"data": [
{
"id": 1,
"name": "Stripe Production",
"code": "stripe_prod",
"type": "ONLINE",
"currency": "USD,EUR,GBP",
"country": "US",
"state": true,
"createdTime": "2026-08-01T00:00:00Z"
}
]
}
Create/Update Channel
POST /api/channel/modify
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
id | Long | No | Channel ID (omit for create) |
name | String | Yes | Channel name |
code | String | Yes | Unique channel code |
type | String | Yes | ONLINE or OFFLINE |
currency | String | Yes | Supported currencies (comma-separated) |
country | String | Yes | Country code |
apiKey | String | No | Provider API key |
apiSecret | String | No | Provider API secret |
webhookSecret | String | No | Webhook verification secret |
state | Boolean | Yes | Active state |