Checkout, payments and refunds over one HTTP API.

Create a hosted checkout from your server, send the customer to it, and confirm the order from a signed webhook. binkly routes each payment to the provider accounts you connect.

Developer preview: the v1 API may still change. Test mode is open to anyone who signs up; live payments need an approved business account.

# Create a hosted checkout, then send the customer to its "url"
curl https://api.binkly.tech/v1/checkout/sessions \
  -H "Authorization: Bearer sk_test_…" \
  -H "Idempotency-Key: order-1042" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 2400,
    "currency": "USD",
    "description": "Everyday Bottle",
    "client_reference_id": "order-1042",
    "success_url": "https://shop.example/thanks?cs={CHECKOUT_SESSION_ID}",
    "cancel_url": "https://shop.example/cart"
  }'

Amounts are integers in the currency’s smallest unit: 2400 is USD 24.00.

What you can build with today.

One account, one set of keys and one dashboard for all of it.

Hosted checkout

POST /v1/checkout/sessions returns a url on binkly’s checkout. Sessions expire after a time you set, from 5 minutes to 7 days.

Payments API

Create, list and retrieve payments with /v1/payments, and refund in full or in part.

binkly button

A “Pay with binkly” button for any page. It opens the checkout in a small window and tells your page when it is done.

Webhooks and events

Signed events for payments, refunds, checkouts, subscriptions, disputes, order problems and invoices, plus GET /v1/events to catch up.

Subscriptions

Add recurring to a checkout session to charge every week, month or year. Then list, cancel or reprice with /v1/subscriptions; a higher price waits for the customer to accept it.

Invoices

POST /v1/invoices emails a customer a bill with line items, a due date and a pay link. binkly reminds them, marks it paid, and can bill the same every month.

Order problems

Customers report problems with an order from their wallet, such as an order that never came. Read and answer them with /v1/order_issues; they see your answer in the wallet and by email.

Summary and Intelligence

GET /v1/summary gives sales, refunds and what waits on you for 1 to 90 days. /v1/intelligence gives a health score, next steps, a 14-day forecast and answers to questions, all statistics on your own payments.

Keys, modes and retries.

Send your secret key as a bearer token. Keys that start with sk_test_ work in test mode and sk_live_ keys in live mode; test and live data are kept apart.

Send an Idempotency-Key header when you create a payment, refund or checkout session. If a request is retried with the same key, you get the first result instead of a second charge.

Server libraries for Node.js and PHP do this for you: they add an idempotency key to every POST and retry when the network fails or binkly is busy, so a retry never charges or refunds twice.

  • Authorization: Bearer sk_test_…
  • Idempotency-Key: <your order id>
  • npm install @binkly/node
  • composer require binkly/binkly-php
  • Keep secret keys on your server, never in a browser or app

Payment object

{
  "id": "pay_…",
  "object": "payment",
  "mode": "test",
  "amount": 2400,
  "currency": "USD",
  "status": "succeeded",
  "amount_refunded": 0,
  "fee": 0,
  "failure_code": null,
  "metadata": {},
  "created_at": "…"
}

Status is one of processing, succeeded, failed, partially_refunded or refunded. Shortened.

Every event, signed.

Add an endpoint in the dashboard and choose the events you want. Each delivery carries a Binkly-Signature header: t=<unix time>,v1=<HMAC-SHA256> of "<t>.<raw body>", signed with your endpoint secret (whsec_…).

There are events for payments, refunds, completed checkouts and subscriptions; for disputes, when a customer challenges a payment; for problems customers report with an order; and for invoices. You also get binkly’s signed proof for each purchase a customer’s AI assistant made, and hear when binkly Intelligence sees something go wrong (payments failing, a provider down, sales stopped), and when your users answer a binkly Auth request.

If your server does not answer with a 2xx, binkly retries with growing gaps for about 20 hours.

  • payment.succeeded, payment.failed
  • refund.succeeded, refund.failed
  • checkout.session.completed
  • subscription.created, .renewed, .payment_failed, .updated, .canceled
  • dispute.created, .updated, .closed
  • order_issue.opened, .answered, .resolved
  • invoice.created, .sent, .paid, .voided, .overdue
  • agent_mandate.issued
  • intelligence.alert
  • auth.request.approved, .denied, .not_me, .expired, auth.device.linked, .revoked
{
  "id": "evt_…",
  "type": "checkout.session.completed",
  "mode": "test",
  "created_at": "…",
  "data": {
    "checkout_session": {
      "id": "cs_test_…",
      "client_reference_id": "order-1042",
      "amount": 2400,
      "currency": "USD"
    },
    "payment": { "id": "pay_…", "status": "succeeded" }
  }
}

Shortened. Reject events with an old timestamp to stop replays.

Add the button with two script tags.

Your server creates a checkout session; the page shows the binkly button for it. Customers pay with what they saved in their wallet (cards, mobile wallets, bank transfers or pay later through supported providers) in a small window, and your page is told when it is done.

  • Card details never touch your site
  • Checkout opens in a window over your page, and a payment company’s or bank’s page opens there too, so the customer stays with you
  • Confirm on your server with the checkout.session.completed webhook
  • Arabic and English

HTML

<!-- 1. Where the button goes -->
<div id="binkly-button"></div>

<!-- 2. The script, then the checkout id from your server -->
<script src="https://wallet.binkly.tech/v1/binkly.js"></script>
<script>
  Binkly.button("#binkly-button", {
    checkout: "cs_test_…",
    onComplete: (e) => { location.href = "/thank-you?checkout=" + e.checkout; },
  });
</script>

A message in the browser is a hint, not proof: confirm the payment on your server.

Let AI assistants buy for your customers.

A binkly wallet customer can connect an AI assistant and give it a key that only asks to buy. They set the limits: one currency, the most one purchase may cost, a budget for each day, week or month, the stores it may buy from, and an end date. They can also keep it to stores binkly verified, let it pay without asking only at stores they bought from before, and let it buy only between set hours. Each purchase waits for their approval in the wallet, or is paid at once below an amount they choose. An agent can keep only a few requests waiting, so it cannot flood the customer.

Your store does nothing new. The assistant pays the same checkout your customers pay, and you get the same checkout.session.completed webhook. The payment’s metadata says it was an agent (agent_purchase), and the dashboard shows it. If the order goes wrong, the assistant can report the problem for the customer, and it reaches you like any other order problem.

  • The assistant never sees the card or the customer’s details
  • Every agent payment comes with a signed mandate: binkly’s Ed25519 proof of how the customer approved it, for you to keep with the order (GET /v1/payments/:id/agent-mandate, checkable at /.well-known/jwks.json)
  • A price guard: the assistant says the price it saw, and binkly refuses a checkout that asks for anything else, so a page that tricks it cannot charge more
  • The proof reaches your server as the agent_mandate.issued webhook; before buying, an assistant can see whether binkly verified your business
  • List products for assistants in the dashboard or with POST /v1/products. An assistant finds them, buys at the listed price, and the order reaches you as the usual checkout.session.completed
  • Authorization: Bearer agk_test_…, revoked by the customer at any time
  • Connect Claude, ChatGPT and other AI apps with one address, https://api.binkly.tech/mcp: the customer signs in to their wallet and sets the limits (OAuth 2.1, no key to copy). A local MCP server and BinklyAgent in @binkly/node too
{
  "mcpServers": {
    "binkly": {
      "command": "npx",
      "args": ["-y", "@binkly/agent-mcp"],
      "env": { "BINKLY_AGENT_KEY": "agk_test_…" }
    }
  }
}

Over a limit, the answer says which one (over_limit, over_budget…) so the assistant can tell the customer.

Run your business from your own AI assistant.

Connect Claude, ChatGPT, Cursor or any app that speaks MCP to your binkly account at one address, https://api.binkly.tech/business/mcp. Ask in your own words how sales went, which payments failed or what to fix first. The assistant can also find payments, refund, make payment links and invoices, and answer customers’ order problems.

Apps that sign in, such as Claude.ai and ChatGPT, need no key. The app sends you to your dashboard, you approve test or live, and binkly makes a key for the app that you can revoke under Developers. Claude Code, Cursor and VS Code can send one of your secret keys instead. Either way the assistant can do only what that key can, in its mode, and every call is recorded like any other API call.

  • A test key touches only test payments. A live key can refund real money, so start with a test key, and only an owner of an approved business can approve live
  • binkly tells the assistant to check with you before it refunds, sends an invoice or sends an answer to a customer
  • Answers about your numbers come from binkly Intelligence: statistics on your own payments, asked in Arabic or English
  • Cash on delivery: a link for a deposit now, then a link for the rest at the door
# Run once in a terminal, with one of your secret keys
claude mcp add --transport http binkly https://api.binkly.tech/business/mcp \
  --header "Authorization: Bearer sk_test_…"

In Claude.ai or ChatGPT, add a custom connector with the address and approve it in your dashboard.

Replace SMS codes with binkly Auth.

Ask your own users’ phones to approve a sign-in or an action. They tap the number your page shows and confirm with their fingerprint or face, and you get a signed answer by webhook. Nothing travels by text message to be intercepted, and your users need only the binkly Auth app, not a binkly account.

  • $0.005 a request, the first 1,000 each month free, and $0.003 above 100,000
  • The same keys as the rest of the API: POST /v1/auth/requests
  • Live mode for verified businesses only, with a signed proof for every answer
See the Auth API

Ask the phone

# Ask the user's phone to approve a sign-in
curl https://api.binkly.tech/v1/auth/requests \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  -d '{ "user_id": "aeu_…", "type": "sign_in" }'

# Answer
{ "id": "ach_…", "status": "pending", "number": 18 }

Show number from the answer on your sign-in page. The phone shows three numbers and your verified business name.

Plugins and platform apps.

Each one uses the same pieces as the API: a hosted checkout per order and a signed webhook when it is paid.

Available

WooCommerce

A payment gateway with Blocks checkout support. Orders are marked paid from the signed webhook, refunds work both ways, and every request carries an idempotency key.

Download the plugin (.zip)
Available

Any website

The binkly button, the hosted checkout url, or payment links you create in the dashboard.

Button example
Coming soon

Shopify

A Shopify payments app. It can be installed once Shopify approves binkly as a payments partner.

Contact us about this
Coming soon

Zid

Built and tested. It will be switched on once Zid lists binkly as a payment provider.

Contact us about this
Coming soon

Salla

The binkly app for Salla is built: orders where the customer picks one of the methods you choose get a binkly payment link, then are marked paid in Salla. It opens once Salla approves the app.

Contact us about this

Build in test mode, then go live.

No real money moves in test mode. You can start before you connect a payment provider.

  1. 1

    Get a test key

    Create an account and copy your sk_test_ key from the dashboard.

  2. 2

    Try every outcome

    Pay with the test tokens tok_success, tok_declined, tok_insufficient_funds and tok_processing_error, and point a webhook at your server.

  3. 3

    Go live

    Request live access. binkly reviews your business; once it is approved, your sk_live_ key starts working.

Request early access to live payments.

Tell us about your business. We review it and email you an invite to go live.

We use these details to review your request and reply to you. See our privacy policy.

Want to start today? Create a business account and use test mode right away.