Passa al contenuto principale
Versione: Next

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

FieldTypeRequiredDescription
idLongNoChannel ID (omit for create)
nameStringYesChannel name
codeStringYesUnique channel code
typeStringYesONLINE or OFFLINE
currencyStringYesSupported currencies (comma-separated)
countryStringYesCountry code
apiKeyStringNoProvider API key
apiSecretStringNoProvider API secret
webhookSecretStringNoWebhook verification secret
stateBooleanYesActive state

Response

{
"code": 200,
"message": "Channel saved",
"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",
"updatedTime": "2026-08-18T10:00:00Z"
}
}

Channel Types

TypeDescription
ONLINEReal-time payment processing (cards, e-wallets)
OFFLINEBank transfers, wire transfers

Channel States

StateDescription
trueChannel is active and accepting payments
falseChannel is inactive