Create payments and render checkout on your own site from the checkout JSON payload — or use hosted links and embeds. Full field reference for payments, payment links, webhooks, and custom UI.
The Glidure REST API lets you create one-shot payments, reusable payment links, and receive real-time status updates via webhooks. All endpoints live under /api/v1/ and return JSON.
| Field | Type | Default | Description |
|---|---|---|---|
Base URLRequired | string | — | Your deployed app origin, e.g. https://glidure.com. Set NEXT_PUBLIC_APP_URL in production so checkout and embed URLs are absolute. |
Content-TypeRequired | header | application/json | Required on POST and PATCH requests with a body. |
AuthorizationRequired | header | Bearer gk_live_… | API key from the Developers page in your dashboard. |
checkoutUrl (hosted Glidure page) and a full checkout JSON object. Prefer rendering from checkout on your own domain when you want buyers to stay on your site, keep your branded gateway, and build trust with a familiar checkout — Glidure still verifies deposits server-side. Use checkoutUrl when you want a zero-UI integration. See Custom checkout UI.gk_live_…. Enable Payments and/or Withdrawals permissions as needed.Authorization: Bearer YOUR_KEY.curl -X POST https://glidure.com/api/v1/payments \
-H "Authorization: Bearer gk_live_..." \
-H "Content-Type: application/json" \
-d '{
"itemName": "Consulting hour",
"amount": "25.00",
"network": "polygon",
"currencyToken": "USDC",
"expiresAt": "2026-12-31T23:59:59.000Z"
}'
# Prefer: render UI from response.checkout (amount, QR URI, address, instructions).
# Poll GET /api/v1/payments/{id} (same checkout shape) until status is "paid".
# Optional shortcut: redirect the customer to response.checkoutUrl.Every /api/v1/* route requires a valid Bearer token. Keys are scoped to your merchant account and can be revoked from the dashboard at any time. Each key has one or both permissions:
payment — create/list payments and payment links.withdraw — withdrawals and auto settlements from your balance.Requests to an endpoint without the required permission return 403.
| Field | Type | Default | Description |
|---|---|---|---|
AuthorizationRequired | header | — | Format: Bearer gk_live_…. Keys must start with the gk_live_ prefix. |
curl -H "Authorization: Bearer gk_live_..." \ https://glidure.com/api/v1/payments
Invalid or missing keys return 401. Suspended accounts return 403 even with a valid key.
Limits are per IP address. When exceeded, the API returns 429 with a Retry-After header (seconds until the window resets).
| Endpoint | Limit | Window |
|---|---|---|
POST /api/v1/payments | 30 requests | 10 minutes |
GET /api/v1/payments | 60 requests | 1 minute |
GET /api/v1/payments/{id} | 90 requests | 1 minute |
POST /api/v1/withdrawals | 20 requests | 10 minutes |
GET /api/v1/withdrawals | 60 requests | 1 minute |
GET /api/v1/withdrawals/{id} | 90 requests | 1 minute |
POST /api/v1/settlements | 20 requests | 10 minutes |
GET /api/v1/settlements | 60 requests | 1 minute |
GET /api/v1/settlements/{id} | 60 requests | 1 minute |
POST /api/v1/settlements/{id}/cancel | 30 requests | 1 minute |
POST /api/v1/payment-links | 20 requests | 10 minutes |
PATCH /api/v1/payment-links/{id} | 30 requests | 10 minutes |
Glidure is free with unlimited payment links, embeds, and API access. Fees vary by payment size (USD equivalent): 0.75% for $1–$30; 0.65% for $31–$50; 0.45% for $51–$150, otherwise 0.35%. Each order gets a unique deposit address; any amount received on-chain confirms the checkout. Your net payout is based on the listed minimum (exact/overpaid) or the amount actually received (underpaid). The fee percent is stored on each order as platform_fee_percent at creation time.
Payment requests below 10 USDT (or the USD equivalent when using pricingMode: "usd") are rejected at creation.
Create a single checkout order programmatically. Each call mints one order with its own QR code, expiry, and checkout page at /pay/{orderId}.
/api/v1/paymentsReturns 201 with the order id, optional hosted checkoutUrl, and a full checkout object to render pay UI on your own site.
| Field | Type | Default | Description |
|---|---|---|---|
itemNameRequired | string | — | Label shown on checkout. 1–80 characters. |
amountRequired | string | — | Payment amount. Decimal string, up to 18 places. |
networkOptional | enum | polygon | polygon, ethereum, bnb, or tron. |
currencyTokenOptional | enum | POL | POL, ETH, BNB, TRX, USDC, or USDT. Must be valid for the chosen network. |
pricingModeOptional | enum | fixed | fixed — amount is in the token. usd — amount is USD; converts to native token. USD mode requires native token. |
expiresAtRequired | string (ISO 8601) | — | When this checkout stops accepting payment. Must be in the future. |
successRedirectUrlOptional | string (URL) | — | Redirect after successful payment. Omit to keep the customer on Glidure. redirectUrl is a legacy alias. |
failureRedirectUrlOptional | string (URL) | — | Redirect after expired/failed checkout. Omit to keep the customer on Glidure. |
POST /api/v1/payments
Content-Type: application/json
{
"itemName": "Consulting hour",
"amount": "25.00",
"network": "polygon",
"currencyToken": "USDC",
"pricingMode": "fixed",
"expiresAt": "2026-12-31T23:59:59.000Z"
}{
"id": "550e8400-e29b-41d4-a716-446655440000",
"paymentUrl": "ethereum:0x...@137/transfer?...",
"checkoutUrl": "https://glidure.com/pay/550e8400-e29b-41d4-a716-446655440000",
"checkout": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"item_name": "Consulting hour",
"merchant_name": "Acme Store",
"network": "polygon",
"network_label": "Polygon",
"amount": "25.00",
"payable_amount": "25.00",
"currency_token": "USDC",
"status": "pending",
"expires_at": "2026-12-31T23:59:59.000Z",
"payment_url": "ethereum:0x...@137/transfer?...",
"recipient_wallet": "0xDepositAddress...",
"instructions": {
"how_to_pay": [{ "n": 1, "text": "…" }],
"is_stablecoin": true
},
"copy": { "waiting_label": "Waiting for secure confirmation", "order_short_id": "550e8400" },
"ui": {
"layout": "split",
"active_step": "scan",
"sections": ["brand", "steps", "how_to_pay", "qr", "address", "…"],
"poll": {
"url": "https://glidure.com/api/v1/payments/550e8400-e29b-41d4-a716-446655440000",
"interval_ms": 8000
}
},
"appearance": { "showHowToPay": true, "theme": "light" }
}
}checkout (QR from payment_url, copy recipient_wallet / payable_amount). Poll GET /api/v1/payments/{id} — same session shape — until status is terminal. Hosted checkoutUrl remains available as a fallback.amount as a USD figure and converts it to the native token (POL, ETH, BNB, and TRX) at the current rate. Only valid when currencyToken is the network's native asset. Stablecoins always use fixed./api/v1/payments| Field | Type | Default | Description |
|---|---|---|---|
statusOptional | query | — | Filter by status: pending, paid, expired, or failed. |
limitOptional | query | 50 | Max results per page. Capped at 100. |
GET /api/v1/payments?status=paid&limit=50
{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"item_name": "Consulting hour",
"status": "paid",
"network": "polygon",
"network_label": "Polygon",
"currency_token": "USDC",
"amount": "25.00",
"payable_amount": "25.00",
"price_usd": null,
"platform_fee_percent": "1.5",
"platform_fee_amount": "0.375",
"merchant_net_amount": "24.625",
"payout_status": "sent",
"payment_status": "exact",
"received_amount": "25.00",
"transaction_hash": "0xabc...",
"payment_link_id": null,
"created_at": "2026-08-29T10:00:00.000Z",
"paid_at": "2026-08-29T10:05:00.000Z",
"expires_at": "2026-08-29T10:15:00.000Z",
"checkout_url": "https://glidure.com/pay/550e8400-e29b-41d4-a716-446655440000",
"payment_url": "ethereum:0x...@137/transfer?..."
}
]
}/api/v1/payments/{id}Returns the same checkout session object nested on create (UI-ready JSON — not the list-row shape). If the order is still pending, this endpoint also checks the unique deposit address for payment and updates the status before responding — use it for polling a merchant-rendered checkout (see checkout.ui.poll / recommended 8000 ms). When paid, payment_status is exact, overpaid, or underpaid; received_amount is the on-chain amount detected.
| Field | Type | Default | Description |
|---|---|---|---|
idRequired | path (UUID) | — | Order id returned from create. |
When status changes to expired or failed, a webhook is dispatched automatically (if configured).
Pay out from your balance to any valid on-chain address. Requires the withdraw permission on your API key.
amount is what the recipient receives; your balance is debited amount + platform fee. Fee tiers match payments. On-chain gas is paid by the platform wallet.This is separate from the dashboard Withdraw page, which sends to your own configured receiving wallet with no extra fee at withdraw time. There is no minimum withdrawal amount — any positive amount is allowed. Locked reserve funds are never debited; only the withdrawable surplus above the lock is used.
/api/v1/withdrawalsReturns 201 when the withdrawal is sent, or 200 when an existing idempotencyKey matches. Withdrawals are sent immediately.
| Field | Type | Default | Description |
|---|---|---|---|
amountRequired | string | — | Decimal token amount the recipient receives. Your balance is debited this amount plus the platform fee. |
networkRequired | string | — | polygon, ethereum, bnb, or tron. |
currencyTokenRequired | string | — | POL, ETH, BNB, TRX, USDC, or USDT (must be available on the network). |
destinationAddressRequired | string | — | Recipient wallet address on the chosen network. |
referenceOptional | string | — | Your internal reference (max 120 characters). |
idempotencyKeyOptional | string | — | 8–128 characters. Retrying with the same key returns the original withdrawal. |
POST /api/v1/withdrawals
Content-Type: application/json
{
"amount": "5.00",
"network": "polygon",
"currencyToken": "USDT",
"destinationAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
"reference": "user-123-cashout",
"idempotencyKey": "cashout-user-123-2026-09-01"
}{
"id": "660e8400-e29b-41d4-a716-446655440001",
"status": "sent",
"network": "polygon",
"network_label": "Polygon",
"currency_token": "USDT",
"amount": "5.00",
"requested_amount": "5.00",
"platform_fee": "0.05",
"gas_fee": "0",
"total_debited": "5.05",
"destination_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
"reference": "user-123-cashout",
"transaction_hash": "0xabc...",
"idempotency_key": "cashout-user-123-2026-09-01",
"created_at": "2026-09-01T10:00:00.000Z"
}/api/v1/withdrawals| Field | Type | Default | Description |
|---|---|---|---|
statusOptional | query | — | Filter: pending_approval, processing, sent, failed, declined, or reverted. |
limitOptional | query | 50 | Max results. Capped at 100. |
/api/v1/withdrawals/{id}Pay many addresses in one request. If your merchant balance covers the total, Glidure sends immediately. If not, the batch waits until enough funds arrive (from payments or balance loads), then executes automatically. Requires the withdraw permission.
/api/v1/settlementsReturns 201 when completed immediately, 202 when waiting for funds, or 200 for an idempotent replay.
| Field | Type | Default | Description |
|---|---|---|---|
networkRequired | string | — | polygon, ethereum, bnb, or tron. |
currencyTokenRequired | string | — | POL, ETH, BNB, TRX, USDC, or USDT. |
destinationsRequired | array | — | List of { address, amount, reference? }. 1–50 items. Same fee rules as POST /api/v1/withdrawals. |
idempotencyKeyOptional | string | — | 8–128 characters. Safe to retry the same batch. |
POST /api/v1/settlements
Authorization: Bearer glidure_…
Content-Type: application/json
{
"network": "polygon",
"currencyToken": "USDT",
"idempotencyKey": "payout-run-2026-09-05",
"destinations": [
{ "address": "0xabc…", "amount": "25.00", "reference": "user-1001" },
{ "address": "0xdef…", "amount": "10.50", "reference": "user-1002" }
]
}Statuses: waiting_funds, processing, completed, partial, failed, cancelled. Webhooks: settlement.waiting, settlement.completed, settlement.partial, settlement.failed, settlement.cancelled.
/api/v1/settlements/api/v1/settlements/{id}/api/v1/settlements/{id}/cancelCancels a waiting_funds batch and releases its soft-lock on withdrawable balance. Returns 409 if the settlement is already processing, completed, or otherwise not cancellable. Emits settlement.cancelled.
Payment links are reusable checkouts. Each visitor who opens the link gets a fresh order with its own QR code and expiry. The API accepts the same fields as the dashboard payment link form — appearance, visibility toggles, embed options, and multi-network pricing.
/api/v1/payment-linksReturns 201 with the link record, prices, and URL helpers.
| Field | Type | Default | Description |
|---|---|---|---|
itemNameRequired | string | — | Internal name and default checkout title. 1–80 characters. |
pricesRequired | array | — | 1–4 price objects. One per network. See Price object below. |
linkTypeOptional | enum | share | share — link in new tab. embed — iframe on your site. |
successRedirectUrlOptional | string (URL) | — | Redirect after successful payment. Omit to keep the customer on Glidure. |
failureRedirectUrlOptional | string (URL) | — | Redirect after expired/failed checkout. Omit to keep the customer on Glidure. |
redirectUrlOptional | string (URL) | — | Deprecated alias for successRedirectUrl. |
displayMode | enum | card | Default embed layout: card, inline, or button. |
displayTitleOptional | string | — | Checkout headline override. Max 80 chars. Falls back to itemName. |
descriptionOptional | string | — | Subtitle under the title. Max 280 chars. |
imageUrlOptional | string (URL) | — | Product image. http(s) URL, max 2048 chars. |
accentColorOptional | string | — | Button and accent hex color, e.g. #ff6b2b. |
backgroundColorOptional | string | — | Page background hex color. |
buttonTextOptional | string | — | Primary button label. Max 40 chars. |
themeOptional | enum | light | light or dark. |
linkExpiresAtOptional | string (ISO 8601) | — | Required for share links — when the link stops accepting new checkouts (410 after). Omit for embeds and one-shot payments. |
showImageOptional | boolean | true | Product image block. |
showTitleOptional | boolean | true | Title / displayTitle heading. |
showDescriptionOptional | boolean | true | Description text. |
showMerchantChipOptional | boolean | true | Merchant name chip. |
showHowToPayOptional | boolean | true | "How to pay" instructions section. |
showUsdReferenceOptional | boolean | true | USD equivalent reference for token amounts. |
showCountdownOptional | boolean | true | Expiry countdown timer. |
showExactAmountBoxOptional | boolean | true | Minimum amount copy box. |
showOrderFooterOptional | boolean | true | Order metadata footer (order id, timestamps). |
showBrandingOptional | boolean | true | "Powered by Glidure" branding footer. |
POST /api/v1/payment-links
{
"linkType": "embed",
"itemName": "Premium plan",
"prices": [
{ "network": "polygon", "currencyToken": "USDC", "amount": "9.99" },
{
"network": "ethereum",
"currencyToken": "ETH",
"amount": "50.00",
"pricingMode": "usd"
}
],
"successRedirectUrl": "https://yoursite.com/thank-you",
"failureRedirectUrl": "https://yoursite.com/payment-failed",
"displayTitle": "Premium access",
"description": "One year of Pro features",
"imageUrl": "https://cdn.example.com/product.png",
"accentColor": "#ff6b2b",
"backgroundColor": "#131316",
"buttonText": "Complete payment",
"theme": "dark",
"showBranding": true,
"displayMode": "card",
"showImage": true,
"showTitle": true,
"showDescription": true,
"showMerchantChip": true,
"showHowToPay": true,
"showUsdReference": true,
"showCountdown": true,
"showExactAmountBox": true,
"showOrderFooter": true
}Share links require linkExpiresAt (ISO 8601, must be in the future). Embed links omit it — they stay open until disabled; checkouts from embeds do not expire.
| Field | Type | Default | Description |
|---|---|---|---|
networkRequired | enum | — | polygon, ethereum, bnb, or tron. At most one price per network (4 supported). |
currencyTokenRequired | enum | — | Token on that network — see Networks & tokens. |
amountRequired | string | — | Decimal amount in token (fixed) or USD (usd mode). |
pricingModeOptional | enum | fixed | fixed or usd. USD only valid with native token. |
{
"id": "660e8400-e29b-41d4-a716-446655440001",
"link_type": "embed",
"item_name": "Premium plan",
"active": true,
"display_mode": "card",
"theme": "dark",
"payment_link_prices": [
{
"network": "polygon",
"currency_token": "USDC",
"amount": "9.99",
"pricing_mode": "fixed"
}
],
"urls": {
"embed_url": "https://glidure.com/l/660e8400-e29b-41d4-a716-446655440001",
"checkout_url": "https://glidure.com/l/660e8400-e29b-41d4-a716-446655440001",
"link_expires_at": null
}
}Share links return checkout_url and share_url (both point to /l/{id}) and include link_expires_at (returns 410 after that time). Embed links return embed_url and checkout_url; link_expires_at is usually null.
/api/v1/payment-links/{id}Partial update — send only the fields you want to change. Returns 200 with the updated link.
prices, all existing prices are deleted and replaced. You cannot patch a single network — sendthe full 1–4 price list you want to keep.| Field | Type | Default | Description |
|---|---|---|---|
activeOptional | boolean | — | Set false to disable the link without deleting it. |
itemNameRequired | string | — | Internal name and default checkout title. 1–80 characters. |
successRedirectUrlOptional | string (URL) | — | Redirect after successful payment. Omit to keep the customer on Glidure. |
failureRedirectUrlOptional | string (URL) | — | Redirect after expired/failed checkout. Omit to keep the customer on Glidure. |
redirectUrlOptional | string (URL) | — | Deprecated alias for successRedirectUrl. |
displayMode | enum | card | Default embed layout: card, inline, or button. |
displayTitleOptional | string | — | Checkout headline override. Max 80 chars. Falls back to itemName. |
descriptionOptional | string | — | Subtitle under the title. Max 280 chars. |
imageUrlOptional | string (URL) | — | Product image. http(s) URL, max 2048 chars. |
accentColorOptional | string | — | Button and accent hex color, e.g. #ff6b2b. |
backgroundColorOptional | string | — | Page background hex color. |
buttonTextOptional | string | — | Primary button label. Max 40 chars. |
themeOptional | enum | light | light or dark. |
linkExpiresAtOptional | string (ISO 8601) | — | Required for share links — when the link stops accepting new checkouts (410 after). Omit for embeds and one-shot payments. |
showImageOptional | boolean | true | Product image block. |
showTitleOptional | boolean | true | Title / displayTitle heading. |
showDescriptionOptional | boolean | true | Description text. |
showMerchantChipOptional | boolean | true | Merchant name chip. |
showHowToPayOptional | boolean | true | "How to pay" instructions section. |
showUsdReferenceOptional | boolean | true | USD equivalent reference for token amounts. |
showCountdownOptional | boolean | true | Expiry countdown timer. |
showExactAmountBoxOptional | boolean | true | Minimum amount copy box. |
showOrderFooterOptional | boolean | true | Order metadata footer (order id, timestamps). |
showBrandingOptional | boolean | true | "Powered by Glidure" branding footer. |
pricesOptional | array | — | Replaces ALL existing prices. Send the complete the full 1–4 price list. |
PATCH /api/v1/payment-links/660e8400-e29b-41d4-a716-446655440001
{
"active": false,
"itemName": "Updated name",
"prices": [
{ "network": "polygon", "currencyToken": "USDC", "amount": "12.00" }
],
"accentColor": "#16a34a"
}linkType cannot be changed after creation. Only displayMode is embed-only; redirect URLs work on both share and embed links.
/api/v1/payment-links| Field | Type | Default | Description |
|---|---|---|---|
typeOptional | query | — | Filter by share or embed. Omit to return all links. |
GET /api/v1/payment-links?type=embed
/api/v1/payment-links/{id}Returns the link with all prices and urls helper object.
| linkType | Use when | URL | Embed-only fields |
|---|---|---|---|
share default | Send a link by email, SMS, or social. Customer opens a full checkout page in a new tab. Orders expire after the platform checkout window (admin Settings → Billing). | /l/{linkId} | Optional successRedirectUrl / failureRedirectUrl. displayMode is ignored. |
embed | Embed checkout in your site via iframe. Supports card, inline, and floating button layouts. Checkouts stay open until paid. | /l/{linkId}?mode=card|inline|button | successRedirectUrl — optional; after paid checkout Glidure shows a 10s countdown then redirects (instant button too). Omit to keep customers on Glidure. failureRedirectUrl — same for expired/failed checkout. redirectUrl is an alias for successRedirectUrl. displayMode — default layout (card, inline, or button). |
card — Full checkout box (default). Best for dedicated payment sections.inline — Slim row that expands in place. Good for product pages.button — Floating pill in the bottom-right that opens a modal checkout.Override the saved displayMode per embed with the ?mode= query param without creating a separate link.
A payment link can accept payment on 1–4 networks. Each network gets exactly one price entry in the prices array.
| Mode | amount means | Valid tokens |
|---|---|---|
fixed default | Exact token amount (e.g. "9.99" USDC or "0.01" ETH) | Any supported token on that network |
usd | USD dollar amount converted to native token at current rate | Native token only — POL on Polygon, ETH on Ethereum, BNB on BNB Chain, TRX on Tron |
These fields control how the checkout page looks. All are optional on create; omitted fields use the defaults below.
| Field | Type | Default | Description |
|---|---|---|---|
displayTitleOptional | string | — | Checkout headline. Max 80 chars. |
descriptionOptional | string | — | Subtitle. Max 280 chars. |
imageUrlOptional | string (URL) | — | Product/hero image URL. |
accentColorOptional | string | — | Hex color for buttons and accents (#rrggbb). |
backgroundColorOptional | string | — | Hex color for page background. |
buttonTextOptional | string | — | Pay button label. Max 40 chars. |
themeOptional | enum | light | light or dark color scheme. |
Each toggle hides a specific UI element on the checkout page. Defaults are true (shown). These always remain visible regardless of toggles: the QR code, wallet address, pay button, and payment status.
| Field | Type | Default | Description |
|---|---|---|---|
showImageOptional | boolean | true | Product image block. |
showTitleOptional | boolean | true | Title / displayTitle heading. |
showDescriptionOptional | boolean | true | Description text. |
showMerchantChipOptional | boolean | true | Merchant name chip. |
showHowToPayOptional | boolean | true | "How to pay" instructions section. |
showUsdReferenceOptional | boolean | true | USD equivalent reference for token amounts. |
showCountdownOptional | boolean | true | Expiry countdown timer. |
showExactAmountBoxOptional | boolean | true | Minimum amount copy box. |
showOrderFooterOptional | boolean | true | Order metadata footer (order id, timestamps). |
showBrandingOptional | boolean | true | "Powered by Glidure" branding footer. |
showBranding: false is ignored.| Network | API value | Native token | Stablecoins |
|---|---|---|---|
| Polygon | polygon | POL | USDC, USDT |
| Ethereum | ethereum | ETH | USDC, USDT |
| BNB Chain | bnb | BNB | USDC, USDT |
| Tron | tron | TRX | USDC, USDT |
Amount strings accept up to 18 decimal places for tokens (2 for USD pricing mode). Amounts must be greater than zero and within per-token maximums enforced by the API.
Build Glidure pay flows inside your product. Create a payment, then render from the checkout object — no redirect required. Hosted checkoutUrl stays available when you want Glidure to host the page.
status is paid (or use webhooks).POST /api/v1/payments → read checkout.checkout.ui.sections (QR from payment_url, copy boxes from recipient_wallet / payable_amount, steps from instructions.how_to_pay).GET /api/v1/payments/{id} every checkout.ui.poll.interval_ms (or subscribe to webhooks).paid / expired / failed, use copy.result, redirect_url, and explorer_tx_url as needed.| Hosted UI section | JSON fields |
|---|---|
| How to pay | instructions.how_to_pay, ui.layout |
| Merchant / title / amount | merchant_name, item_name, amount, currency_token |
| QR + address | payment_url, recipient_wallet, copy.address_* |
| Waiting / countdown | copy.waiting_label, expires_at |
| Exact amount | payable_amount, copy.exact_amount_label |
| Paid / expired / failed | status, copy.result, redirect_url, explorer_tx_url |
Register webhook endpoints on the Developers page in your dashboard. There is no REST API for webhook management — configure URLs, secrets, and subscribed events from the UI.
payment.pendingpayment.paidpayment.expiredpayment.failedwithdrawal.pendingwithdrawal.sentwithdrawal.failedsettlement.waitingsettlement.completedsettlement.partialsettlement.failedsettlement.cancelled| Event | When fired |
|---|---|
payment.pending | New order created and awaiting on-chain payment. |
payment.paid | Payment verified on-chain and settled. |
payment.expired | Order expired before payment (share links and one-shot payments). |
payment.failed | Order marked failed. |
withdrawal.pending | Older withdrawals that were waiting for approval. New withdrawals are sent immediately. |
withdrawal.sent | Withdrawal confirmed on-chain. |
withdrawal.failed | Withdrawal failed before broadcast; balance restored. |
settlement.waiting | Auto settlement queued — merchant balance not yet enough to send. |
settlement.completed | All destinations in the settlement batch were sent on-chain. |
settlement.partial | Some destinations sent; failed ones were refunded to merchant balance. |
settlement.failed | No destinations were sent; debited amount was refunded when applicable. |
settlement.cancelled | Waiting settlement was cancelled; soft-lock released and destinations will not be paid. |
POST https://your-server.com/webhooks/glidure Content-Type: application/json User-Agent: Glidure-Webhooks/1.0 Glidure-Event: payment.paid Glidure-Timestamp: 1690000000 Glidure-Signature: sha256=<hmac_hex>
{
"event": "payment.paid",
"created_at": "2026-08-29T10:05:00.000Z",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"item_name": "Consulting hour",
"status": "paid",
"network": "polygon",
"currency_token": "USDC",
"amount": "25.00",
"payable_amount": "25.00",
"payment_status": "exact",
"received_amount": "25.00",
"transaction_hash": "0xabc...",
"payment_link_id": null,
"paid_at": "2026-08-29T10:05:00.000Z",
"expires_at": "2026-08-29T10:15:00.000Z"
}
}{
"event": "withdrawal.sent",
"created_at": "2026-09-01T10:05:00.000Z",
"data": {
"id": "660e8400-e29b-41d4-a716-446655440001",
"status": "sent",
"network": "polygon",
"currency_token": "USDT",
"amount": "5.00",
"platform_fee": "0.05",
"destination_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
"reference": "user-123-cashout",
"transaction_hash": "0xabc..."
}
}{
"event": "settlement.completed",
"created_at": "2026-09-05T12:00:00.000Z",
"data": {
"id": "770e8400-e29b-41d4-a716-446655440002",
"status": "completed",
"network": "polygon",
"network_label": "Polygon",
"currency_token": "USDT",
"total_send": "35.50",
"total_fee": "0.36",
"total_debited": "35.86",
"item_count": 2,
"destinations": [
{
"id": "…",
"address": "0xabc…",
"reference": "user-1",
"amount": "25.00",
"status": "sent",
"transaction_hash": "0x…",
"error": null
}
]
}
}Signature is HMAC-SHA256 over {timestamp}.{raw_body} using your webhook secret. Compare against the Glidure-Signature header (strip the sha256= prefix).
const crypto = require('crypto')
function verifyGlidureWebhook(secret, rawBody, timestamp, signatureHeader) {
const expected = crypto
.createHmac('sha256', secret)
.update(`${timestamp}.${rawBody}`)
.digest('hex')
const provided = signatureHeader.replace(/^sha256=/, '')
return expected === provided
}
// In your route handler — use the raw request body, not re-serialized JSON:
app.post('/webhooks/glidure', (req, res) => {
const timestamp = req.headers['glidure-timestamp']
const signature = req.headers['glidure-signature']
const rawBody = req.rawBody // express.raw() or equivalent
if (!verifyGlidureWebhook(process.env.GLIDURE_WEBHOOK_SECRET, rawBody, timestamp, signature)) {
return res.status(401).send('Invalid signature')
}
const payload = JSON.parse(rawBody)
// handle payload.event ...
res.sendStatus(200)
})Embed links load at /l/{linkId}. Append ?mode=card|inline|button to pick the layout. The checkout page sends postMessage events so your iframe can auto-resize.
<iframe
id="glidure-checkout"
src="https://glidure.com/l/{linkId}?mode=card"
width="420"
height="640"
style="border:0;border-radius:16px;"
title="Pay with Glidure"
></iframe>
<script>
window.addEventListener('message', function (event) {
if (!event.data || event.data.type !== 'glidure:resize') return
var iframe = document.getElementById('glidure-checkout')
iframe.style.height = event.data.height + 'px'
if (event.data.width) iframe.style.width = event.data.width + 'px'
})
</script>{
"type": "glidure:resize",
"height": 640,
"width": 420
}Copy ready-made HTML, JavaScript, and React snippets from the Developers page after creating an embed link — they include the resize listener and correct initial dimensions per mode.
| mode | width | height |
|---|---|---|
card | 420 | 640 |
inline | 420 | 84 |
button | 180 | 60 |
POST /api/v1/payment-links
{
"itemName": "Coffee",
"prices": [
{ "network": "polygon", "currencyToken": "USDC", "amount": "4.50" }
]
}POST /api/v1/payment-links
{
"linkType": "share",
"itemName": "Annual membership",
"prices": [
{ "network": "polygon", "currencyToken": "USDC", "amount": "99.00" },
{ "network": "ethereum", "currencyToken": "USDC", "amount": "99.00" },
{ "network": "bnb", "currencyToken": "USDC", "amount": "99.00" }
]
}POST /api/v1/payment-links
{
"itemName": "Tip jar",
"prices": [
{
"network": "polygon",
"currencyToken": "POL",
"amount": "5.00",
"pricingMode": "usd"
}
]
}POST /api/v1/payment-links
{
"linkType": "embed",
"itemName": "Pro plan",
"prices": [
{ "network": "polygon", "currencyToken": "USDC", "amount": "29.00" }
],
"successRedirectUrl": "https://yoursite.com/welcome",
"failureRedirectUrl": "https://yoursite.com/payment-failed",
"displayMode": "button",
"theme": "dark",
"accentColor": "#ff6b2b",
"showBranding": false
}POST /api/v1/payments
{
"itemName": "Order #1042",
"amount": "150.00",
"network": "ethereum",
"currencyToken": "USDC",
"expiresAt": "2026-12-31T23:59:59.000Z"
}
// Primary: render from response.checkout on your site (QR, address, amount, instructions).
// Poll GET /api/v1/payments/{id} until status is "paid" (same checkout session shape).
// Optional: redirect the customer to response.checkoutUrl for hosted checkout.All errors return JSON: { "error": "…" }
| Status | Meaning |
|---|---|
400 | Invalid JSON, validation failure, missing wallet, unknown token/network combo, or empty PATCH body. |
401 | Missing or invalid API key. |
403 | Suspended account, or merchant unavailable. |
404 | Payment or payment link not found (or not owned by your account). |
429 | Rate limited — check Retry-After header. |
500 | Server error — safe to retry idempotent reads; retry creates with care. |
503 | Platform wallet not configured — payment processing temporarily unavailable. |