Skip to content

Overview

What you can build with the 402pay API, and where to start.

The 402pay API is a REST API. It takes and returns JSON, uses standard HTTP status codes, and authenticates with a secret key. Your server creates payments, customers pay on a hosted checkout, and every confirmed payment lands in a wallet only your business controls, so there's nothing to withdraw.

Choose your integration

Every option lands payments in your wallet the same way. They differ in how much you build.

  • No code

    Payment link

    Create a link in the dashboard and share it anywhere: your site, an invoice, a chat or a QR code.

    Payment links
    Code needed
    None
    Time
    Minutes
    Customization
    The link's name, price and currency, plus your checkout settings
    Best for
    One price for many customers, such as a product, a donation or a fixed invoice
  • Recommended

    Your server and hosted checkout

    Your server creates a payment for each order and sends the customer to its checkout. A webhook says when it's paid.

    Accept a payment
    Code needed
    One API call and a webhook handler
    Time
    An afternoon
    Customization
    Amount, reference, metadata, redirects and expiry on every payment
    Best for
    Stores and apps with their own orders
  • Most control

    Your own checkout

    Your server still creates the payment, and your app shows the payment screens itself, on the public checkout endpoints.

    Build your own
    Code needed
    The server calls, plus your own payment screens
    Time
    A few days
    Customization
    Every screen, in your app's own design
    Best for
    Apps that keep customers on their own pages

Base URL

Every path in these docs is relative to it.

Where to next