TgPay Crypto Merchant API
com.tgpaybot/merchant-api
Serveur MCP OK 32 outils
Accept crypto payments via the TgPay Crypto Merchant API — invoices, subscriptions, webhooks.
Fiche technique
- Auteur
- tgpaybot.com (espace de noms du registre)
- Dépôt
- —
- Site
- app.tgpaycrypto.com/mcp
- Version
- 1.0.3
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://app.tgpaycrypto.com/mcp Streamable HTTP
- Outils
- 32
- Catégories
- Finance et paiement
- Dernière mise à jour
- 16 nov. 2026
- Publication
- 16 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/com.tgpaybot/merchant-api)<a href="https://latlas.dev/mcp/com.tgpaybot/merchant-api"><img src="https://latlas.dev/badge/fiche/com.tgpaybot/merchant-api.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://app.tgpaycrypto.com/mcp
- Dernier résultat
- OK 28 nov. 2026, 11:32
- Temps de réponse
- 502 ms (initialize + tools/list)
- Version du protocole
- 2025-06-18
- Nom annoncé
- tgpay 759578be
- Outils
- 32
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 11:32 | OK | 502 ms | 32 |
Outils exposés (32, réponse à tools/list, 28 nov. 2026)
get_docs
Read a TgPay Crypto Merchant API integration doc. START HERE before integrating: topics quickstart, invoices, subscriptions, transfers-checks, webhooks, errors.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| topic | string | oui | quickstart | invoices | subscriptions | transfers-checks | webhooks | errors |
connect
Start token issuance WITHOUT the Mini App UI: creates a merchant-app request and returns a t.me approve link plus a poll_secret. Show the link to the human — they approve with one button ("Create app and issue token") in the @tgpaycryptobot bot — then call connect_status with the poll_secret. Use only when no API token is configured yet.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| app_name | string | oui | Merchant app name shown to the approving human, 1-64 chars (e.g. the project/bot name). |
connect_status
Poll a connect request. Returns pending | denied | expired, or — once approved — the app id and the API TOKEN (returned exactly once: save it to the project's .env immediately, never print it in logs). The token is SCOPED (read, invoices, subscriptions, webhooks) — it cannot move money out of the app; transfers/refunds/checks need the primary token the human holds in the Mini App. Poll every 3-5 seconds while pending.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| poll_secret | string | oui | The poll_secret from the connect tool. |
getMe
Verify the token: app id, name, webhook config, token scopes.
Aucun paramètre.
getBalance
Merchant app balance per asset (available + onhold).
Aucun paramètre.
getCurrencies
Supported crypto assets (code/name/decimals) and fiats.
Aucun paramètre.
getExchangeRates
Current asset↔fiat display rates.
Aucun paramètre.
getStats
App volume/count stats for a period.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start_at | string | non | ISO 8601 period start. |
| end_at | string | non | ISO 8601 period end. |
getInvoices
List invoices (newest first).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| asset | string | non | Filter by asset code. |
| fiat | string | non | Filter by fiat code. |
| invoice_ids | string | non | Comma-separated ids. |
| parent_invoice_id | integer | non | The payments of this multi-payment invoice. |
| client_invoice_id | string | non | Your own id given at createInvoice. |
| status | string | non | active | paid | expired. |
| offset | integer | non | Skip this many. |
| count | integer | non | Page size (default 100). |
getChecks
List checks.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| asset | string | non | Filter by asset code. |
| check_ids | string | non | Comma-separated ids. |
| status | string | non | active | activated | expired. |
| offset | integer | non | Skip this many. |
| count | integer | non | Page size (default 100). |
getTransfers
List app→user transfers.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| asset | string | non | Filter by asset code. |
| transfer_ids | string | non | Comma-separated ids. |
| spend_id | string | non | Filter by idempotency key. |
| status | string | non | pending (parked until the recipient opens the bot) | completed | returned. |
| offset | integer | non | Skip this many. |
| count | integer | non | Page size (default 100). |
getInvoicePayments
List the receipts of one invoice for reconciliation: the wallet payment and every transfer that came to its payment address (paid, pending, late, review), with the amount, sender and tx hash.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| invoice_id | integer | oui | The invoice id. |
getWithdrawals
List the app's on-chain withdrawals and their status.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| asset | string | non | Filter by asset code. |
| withdrawal_ids | string | non | Comma-separated withdrawal ids (uuid). |
| spend_id | string | non | Filter by idempotency key. |
| status | string | non | processing | completed | failed. |
| offset | integer | non | Skip this many. |
| count | integer | non | Page size (default 100). |
getWithdrawAddresses
List the app's saved withdrawal addresses (address_id, network, address, memo, when each becomes usable).
Aucun paramètre.
getWithdrawFees
What a withdrawal costs per asset and network: the network fee charged on top of the amount (`fee`; `fee_empty` to a never-used address where it differs) and the least amount.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| asset | string | non | Only this asset. |
| network | string | non | Only this network code. |
getWithdrawalLinks
List the app's withdrawal links (status active | expired | deleted), newest first.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| offset | integer | non | Skip this many. |
| count | integer | non | Page size (default 100). |
getExchangePairs
Assets the app balance can be exchanged between (any two differing ones are a pair) and the USD limits.
Aucun paramètre.
getExchangeEstimate
Preview an exchange of the app balance at the current rate; moves nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| asset_from | string | oui | Asset to sell. |
| asset_to | string | oui | Asset to buy. |
| amount | string | non | Amount of asset_from to spend (or pass amount_to). |
| amount_to | string | non | Exact amount of asset_to to receive (instead of amount); amount_from in the answer is what it costs. |
getExchanges
List the app's balance exchanges.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| exchange_ids | string | non | Comma-separated exchange ids (uuid). |
| spend_id | string | non | Filter by idempotency key. |
| offset | integer | non | Skip this many. |
| count | integer | non | Page size (default 100). |
getSubscriptionPlans
List subscription plans.
Aucun paramètre.
getSubscriptions
List subscriptions (subscribers).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| plan_id | integer | non | Filter by plan. |
| user_id | integer | non | Filter by Telegram user id. |
| status | string | non | active | grace | cancelled | expired. |
| offset | integer | non | Skip this many. |
| count | integer | non | Page size (default 100, max 500). |
createInvoice
Create a one-off payment invoice; the payer opens result.mini_app_invoice_url. See the invoices doc.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| currency_type | string | non | crypto (default) | fiat. |
| asset | string | non | Asset code (crypto mode). |
| amount | string | non | Decimal string in MAJOR units, e.g. "5" = 5 USDT. Never a float. Required unless open_amount is true. |
| open_amount | boolean | non | Crypto mode only: the payer chooses the amount (donation) — pass true and NO amount. |
| fiat | string | non | Fiat code (fiat mode). |
| accepted_assets | string | non | Fiat mode: comma-separated assets the payer may pay in. |
| rate_lock_seconds | integer | non | Fiat mode: freeze crypto quotes for this long. |
| description | string | non | Shown to the payer (≤1024). |
| hidden_message | string | non | Revealed to the payer ONLY after payment (≤2048). |
| payload | string | non | Opaque data echoed back in the webhook (≤4096). |
| paid_btn_name | string | non | viewItem | openChannel | openBot | callback. |
| paid_btn_url | string | non | URL for the paid button. |
| success_url | string | non | Short form of the paid button: a «Return» button to this link after the payment (not together with paid_btn_*). |
| cancel_url | string | non | A «Return» link shown while the invoice is unpaid. |
| customer | object | non | |
| max_payments | integer | non | Multi-payment invoice (2..1000000): the link takes this many payments, each one its own invoice with `parent_invoice_id`; wallet payments only. |
| client_invoice_id | string | non | Your own id of the invoice (≤64, unique per app): a create that repeats it returns the existing invoice; `getInvoices {client_invoice_id}` finds it. |
| webhook_url | string | non | This operation's own https webhook address — its updates go there instead of the app's `webhook_url`. |
| allow_comments | boolean | non | Default true. |
| allow_anonymous | boolean | non | Let the payer hide from you: `paid_by_user_id` is then null on that payment. Default false. |
| expires_in | integer | non | Invoice TTL in seconds. |
| swap_to | string | non | Auto-convert the received amount to this asset. |
deleteInvoice
Delete an unpaid invoice.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| invoice_id | integer | oui | The invoice to delete. |
getInvoiceAddress
The invoice's own payment address for your checkout page: the payer sends `amount` of `asset` on `network` (plus `memo` when set) before `expires_at`; the invoice is paid by itself once it arrives. A repeat call returns the same address and never extends the window. Show the amount, the network and the deadline from the answer UNCHANGED. Money comes IN only. 409 `checkout_disabled` while the app's address payment method is off.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| invoice_id | integer | oui | The unpaid invoice. |
| asset | string | oui | Asset the payer sends, e.g. USDT. |
| network | string | oui | Network code, e.g. TRON. |
editCheck
Set or clear the description an active check's page shows. No money moves.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| check_id | integer | oui | The check to edit. |
| description | string | non | The new text (≤1024); empty clears it. |
createWithdrawalLink
A link that opens the wallet's Withdraw form for the PERSON who taps it, with your address (and optionally network, amount, memo) filled in — they confirm the withdrawal from their own balance. No app money moves. 403 `withdrawal_link_unavailable` while the feature is off.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| asset | string | oui | Asset code. |
| address | string | oui | The address to receive at. |
| network | string | non | Network code; needed only when the address fits several. |
| amount | string | non | Decimal string in MAJOR units, e.g. "5" = 5 USDT. Never a float. Optional. |
| memo | string | non | Memo / tag, on networks that have one. |
| expires_in | integer | non | Seconds the link works (60..2592000, default 86400). |
deleteWithdrawalLink
Switch a withdrawal link off before its term — it stops opening the form at once.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| link_id | string | oui | The link to switch off. |
deleteCheck
Delete an unclaimed check (refunds the hold).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| check_id | integer | oui | The check to delete. |
createSubscriptionPlan
Create an IMMUTABLE recurring-billing plan; send payers to result.mini_app_subscribe_url. See the subscriptions doc.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | Plan name shown to payers (≤64). |
| asset | string | oui | Asset code, e.g. USDT. |
| amount | string | oui | Decimal string in MAJOR units, e.g. "5" = 5 USDT. Never a float. Charged per period. |
| period_days | integer | oui | Billing period in days. |
archiveSubscriptionPlan
Stop new signups for a plan (live subscriptions keep renewing).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| plan_id | integer | oui | The plan to archive. |
cancelSubscription
Stop future charges for one subscription (paid time runs out).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| subscription_id | integer | oui | The subscription. |
updateApp
Update app name / webhook_url (https) / webhook_events opt-in list. Needs the 'webhooks' scope (the connect-issued token has it) or the primary token. See the webhooks doc for the event types and signature verification.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | non | New app name (1-64). |
| webhook_url | string | non | https URL for webhook delivery; "" clears it. |
| webhook_events | array<string> | non | Extended event types to opt into (invoice_paid is always delivered); [] = invoice_paid-only. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://app.tgpaycrypto.com/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http merchant-api https://app.tgpaycrypto.com/mcpCustomize > Connectors > + Add > Add custom connector ; Name : merchant-api ; URL : https://app.tgpaycrypto.com/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : merchant-api ; Server URL : https://app.tgpaycrypto.com/mcp ; Create as a plugin{
"mcpServers": {
"merchant-api": {
"url": "https://app.tgpaycrypto.com/mcp"
}
}
}{
"mcpServers": {
"merchant-api": {
"type": "http",
"url": "https://app.tgpaycrypto.com/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"merchant-api": {
"url": "https://app.tgpaycrypto.com/mcp"
}
}
}{
"mcpServers": {
"merchant-api": {
"httpUrl": "https://app.tgpaycrypto.com/mcp"
}
}
}[mcp_servers.merchant-api]
url = "https://app.tgpaycrypto.com/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
TgPay Crypto Merchant API · L’Atlas · Test du
[TgPay Crypto Merchant API — L’Atlas](https://latlas.dev/mcp/com.tgpaybot/merchant-api)Source : Registre officiel MCP · relevé le 30 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.