Skip to main content

Partner Documentation

Welcome. You are reading this because a payment platform (your client) has connected you to 4pay.online as a partner (merchant). This section covers everything you need to integrate payment acceptance into your product.


What you can do​

CapabilityDescription
Accept paymentsCard, bank transfer, e-wallet, crypto — depending on your terminal configuration
Pay out fundsSend money to cards, bank accounts, or crypto wallets
Create payment linksGenerate hosted payment pages and QR codes
Track transactionsQuery status, aggregate by date/amount, export history
Receive webhooksReal-time notifications on every status change
Save payment methodsStore cards for recurring charges
Let an agent payMCP, AP2, ACP and A2A — payments driven by AI agents

What you need​

Before making your first API call you need:

  1. An account — registered by your platform operator in their Admin Console
  2. An API key — generated in your Partner Area under Settings → API Keys
  3. At least one active terminal — configured by your platform operator with a payment provider

Quick Navigation​

I want to…Link
Make my first payment in 15 minutesQuick Start
Use a client library instead of raw HTTPSDK — TypeScript, Python, PHP
Let an AI agent take paymentsAgentic Payments
Understand how to authenticateAuthentication
Create a transactionTransactions
Set up webhooksWebhooks
Generate a payment linkPayment Links & QR
Look up an errorError Reference
Run partnership, lease, instalment-sale or deposit contractsParticipatory Finance
Test without real moneySandbox & Testing

Base URL​

https://4pay.online/api/v1              production
https://sandbox.4pay.online/api/v1 sandbox — build here first

The two environments are separate deployments with separate credentials; a sandbox key is meaningless in production and the other way round. Inside a host, env in the request body picks which side of it a transaction lives on.

The API uses JSON for all request and response bodies. All requests must include Content-Type: application/json, x-api-key and x-organization-id — the key is resolved inside the organization the second header names, and a request without it is refused.