Skip to content

API & SDKs

Go from sandbox to live production in hours, not months.

One RESTful API for pay-ins, payouts and treasury, with predictable JSON, idempotent requests and real-time webhooks for every transaction state.

Payments

Create a payment

Creates a payment in the customer’s local currency and returns the next action for the chosen method.

POST /v1/payments
amountinteger
currencystring
methodstring
idempotency_keyheader

An API that reads the way you think

Create a payment in any supported market with the same request shape. Switch the method and currency, and the rest of your integration stays the same.

  • Predictable JSON responses and consistent error codes
  • Idempotency keys on every write request
  • Webhooks for every transaction state change
const fletpay = new Fletpay(process.env.FLETPAY_KEY);

const payment = await fletpay.payments.create({
  amount: 125000,
  currency: "BRL",
  method: "pix",
  customer: { email: "ana@example.com" },
}, { idempotencyKey: "order_8812" });

console.log(payment.status); // "pending"

Webhook events · order_8812Illustrative example

  • 12:04:01.218payment.created
  • 12:04:01.402payment.routed
  • 12:04:03.977payment.succeeded
  • 12:04:04.010settlement.completed

Everything you need to ship

  • Clean REST APIs

    Resource-oriented endpoints, predictable JSON responses and idempotent requests make retries safe and behavior easy to reason about.

  • Real-time webhooks

    Signed event notifications for every transaction state, so your systems react the moment money moves.

  • Pre-built SDKs

    Ready-to-deploy libraries for Node.js, Python, PHP, Go and Java that handle authentication, retries and typing.

  • One-click plugins

    Add Fletpay to WooCommerce, Shopify and Magento stores without writing integration code.

  • Dedicated sandbox

    Simulate successful payments, declines, refunds and webhook payloads before you go live.

  • Scoped API keys

    Separate keys for sandbox and live, with restricted keys for the services that only need part of the API.

Libraries and plugins

Server SDKs

  • Node.js
  • Python
  • PHP
  • Go
  • Java

E-commerce plugins

  • WooCommerce
  • Shopify
  • Magento

Your path to production

  1. 01

    Get sandbox keys

    Create an account and start calling the sandbox API immediately.

  2. 02

    Build and test

    Use SDKs and simulated payloads to cover approvals, declines, refunds and webhooks.

  3. 03

    Switch to live

    Swap to live keys once onboarding is complete. Your code doesn't change.

Frequently asked questions

Something else on your mind? Talk to our team.

Which languages do you support?

Fletpay provides SDKs for Node.js, Python, PHP, Go and Java. Any language that can make HTTPS requests can use the REST API directly.

Is there a sandbox?

Yes. The dedicated sandbox lets you simulate successful payments, declines, refunds and webhook payloads before going live.

How do I make retries safe?

Send an idempotency key with each write request. Repeating the request with the same key returns the original result instead of creating a duplicate.

Do you support e-commerce platforms?

Yes. One-click plugins are available for WooCommerce, Shopify and Magento.

Ready to Unlock Emerging & Global Markets?

Join fast-growing enterprises scaling their payment infrastructure with Fletpay.