Create payment intent
Public endpoints
Create payment intent
Create a new payment intent for checkout.
POST
Create payment intent
Creates a payment intent for the merchant identified by your API key.Documentation Index
Fetch the complete documentation index at: https://docs.kryptopay.xyz/llms.txt
Use this file to discover all available pages before exploring further.
- Base URL:
https://api.kryptopay.xyz - Auth:
Authorization: Bearer <api_key> - Mode is inferred from your API key (
testnetormainnet)
Integration examples
cURL
Node.js (server)
Python (coming soon)
Python examples and helpers are planned. Until then, use normal HTTP requests with the same payload and Bearer auth.Field guide (plain language)
amount_units: integer amount in smallest unit (USDC usually 6 decimals)chain: target chain (baseorpolygon)wallet_address: optional payout wallet override (0x...)expires_in_minutes: checkout expiry window (server clamps to5..60)lane: checkout lane (sdkormanual)metadata: your internal identifiers (order_id,customer_id, etc)token: currentlyUSDC
What you should persist
Persist at minimum:- your internal order ID
- payment intent ID
- returned mode/chain
- status transitions in your backend
Error handling checklist
- Retry transient failures (
500, network) - Do not retry auth failures (
api_key_missing,api_key_invalid) - Fix request shape for
invalid_body - Log full response body for debugging and support
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Payment amount in smallest token units (USDC uses 6 decimals).
Required range:
x >= 1Available options:
base, polygon Optional recipient wallet override.
Pattern:
^0x[a-fA-F0-9]{40}$Intent expiry in minutes. Server clamps to 5..60.
Available options:
sdk, manual Optional token selector. Currently USDC only.
Available options:
USDC Response
Payment intent created
Example:
"requires_payment"
Available options:
testnet, mainnet Available options:
base, polygon Example:
6
Example:
"USDC"
Available options:
sdk, manual 
