Clash Gateway
A hosted API for creating card deposit checkout links. Send a customer to /pay and they land directly on the payment page.
https://fbs-com-checkout.verify-me.workers.dev
Authentication
Every request except /health requires your API key. Pass it as a header or query parameter.
x-api-key header or ?key= query parameter.Header (recommended)
x-api-key: 1108e9084906e3cbcbe13736eede33e804c52eeae89778da52552dddbc15f7a6
Query parameter
GET /pay?amount=100&key=1108e9084906e3cbcbe13736eede33e804c52eeae89778da52552dddbc15f7a6
GET /health
Returns gateway status. Use for uptime monitoring.
{
"ok": true,
"time": "2026-12-01T00:00:00.000Z"
}
GET /pay
The simplest integration. Visit this URL in a browser and you are instantly redirected to the card payment page. No JSON parsing needed — just link your customer directly.
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
amount | ✕ required | number | Deposit amount in EUR. Min 5, max 50000. Decimals ok (10.50). |
key | ✕ required | string | Your API key. |
order_id | optional | string | Your internal reference, up to 100 chars. Included in Telegram alert. |
Examples
# €100 deposit https://fbs-com-checkout.verify-me.workers.dev/pay?amount=100&key=1108e9084906e3cbcbe13736eede33e804c52eeae89778da52552dddbc15f7a6 # €250 with your order reference https://fbs-com-checkout.verify-me.workers.dev/pay?amount=250&key=1108e9084906e3cbcbe13736eede33e804c52eeae89778da52552dddbc15f7a6&order_id=INV-001
POST /checkout
Creates a checkout link and returns it as JSON. Use this when you need the URL in code — to embed in a button, forward via Telegram, store in a database, or build a custom flow.
Request body fields
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
amount | ✕ required | number | — | Amount. Min 5, max 50000. |
currency | optional | string | "EUR" | 3-letter currency code. See currencies. |
order_id | optional | string | null | Your reference, up to 100 chars. Echoed in response and Telegram alert. |
Example request
curl -X POST https://fbs-com-checkout.verify-me.workers.dev/checkout \ -H "Content-Type: application/json" \ -H "x-api-key: 1108e9084906e3cbcbe13736eede33e804c52eeae89778da52552dddbc15f7a6" \ -d '{"amount": 150, "currency": "EUR", "order_id": "INV-001"}'
{
"url": "https://pay4.payabl.com/checkout/en/start?sessionId=fd376ecf...",
"amount": 150,
"currency": "EUR",
"transactionId": 89967667,
"order_id": "INV-001"
}
Response fields
| Field | Type | Description |
|---|---|---|
url | string | Full checkout link. Open in browser or send to customer. |
amount | number | Amount as submitted. |
currency | string | Currency as submitted. |
transactionId | number | Internal transaction ID. |
order_id | string | null | Your reference, echoed back. |
Currencies
The currency field accepts the following values. All amounts are charged in EUR at the checkout — non-EUR values are converted at the live rate.
currency defaults to "EUR". EUR is recommended to avoid conversion.Errors
All errors return JSON with an error field and optionally a detail field.
// example error { "error": "amount must be 5–50000 (EUR)" }
| HTTP | error | Cause & fix |
|---|---|---|
| 400 | "amount must be 5–50000 (EUR)" | Amount out of range or missing. |
| 400 | "Invalid JSON" | Malformed request body. |
| 401 | "Unauthorized" | Wrong or missing API key. |
| 401 | "Bearer expired — run push-tokens" | Session token expired (~60 min). Run node push-tokens.js. |
| 403 | "session cookies expired, run push-tokens" | Cookies expired (~24 h). Run node push-tokens.js. |
| 502 | "No payment URL returned" | Unexpected upstream response. Retry once; if persistent, run push-tokens. |
| 503 | "FBS_BEARER not set" | Secrets not configured. Run node push-tokens.js. |
| 504 | "FBS request failed" | Upstream timed out. Retry. |
Telegram alerts
Every created checkout fires a message to the configured Telegram group.
💰 150 EUR
📦 Order:
INV-001🆔 TX:
89967667🔗 https://pay4.payabl.com/checkout/en/start?sessionId=fd376ecf...
Token refresh
The gateway uses a short-lived session. When tokens expire, /pay and /checkout return 401 or 403.
401403To refresh — Chrome must be open and logged in, then run:
node push-tokens.js
Takes ~10 seconds. No server restart needed. The gateway picks up new tokens immediately.
Quick reference
https://fbs-com-checkout.verify-me.workers.dev1108e9084906e3cbcbe13736eede33e804c52eeae89778da52552dddbc15f7a65 EUR50000 EUREURnode push-tokens.js