Safe retries
Use an idempotency key for payment creation and keep your internal order reference consistent across retries.
Pay-in APIs for hosted checkout and Payout APIs for transfers from available merchant balance.
Send an authenticated POST with an amount, unique order_id and payer_email to the payments/create endpoint.
Use the returned payment.checkout_url. The checkout session lasts ten minutes.
Confirm the result using authenticated payment status or a verified signed webhook. A return URL alone does not prove payment.
POST /api/v1/payments/create
Authorization: Bearer $FLUX_SECRET_KEY
Content-Type: application/json
Idempotency-Key: order-1024-create
{
"amount": 2500,
"order_id": "ORDER-1024",
"payer_email": "buyer@example.com",
"return_url": "https://example.com/thanks"
}
// Returned: payment.checkout_url
// Secrets must remain server-side.Send a server-authenticated request to the existing Payout API with an amount and an active payout_method_id from your merchant account. Use an idempotency key to keep retries tied to the same request.
POST /api/v1/payouts/create
Authorization: Bearer $FLUX_SECRET_KEY
Content-Type: application/json
Idempotency-Key: vendor-transfer-1024
{
"amount": 10000,
"payout_method_id": 123
}Illustrative destination ID. Replace it with your own active payout destination. Required permissions, available balance and payout limits are checked by the platform.
Query GET /api/v1/payouts/status?payout_id=YOUR_PAYOUT_ID or verify signed payout webhook updates. Requested and processing statuses are not completed transfers.
Configure your webhook endpoint in the merchant portal. Validate the signature against your server-held webhook secret, handle repeated events safely and reconcile uncertain states using payment status.
Use the existing API reference for exact signature headers, payload fields and response structures for payments and payouts. Keep test and live credentials separate.
Read API & webhook documentationUse an idempotency key for payment creation and keep your internal order reference consistent across retries.
Keep API keys, webhook secrets and provider credentials on your server. Never add them to frontend code.
A timeout is not a verified failure. Check the existing payment before creating another customer payment.
Create your account, submit your business for review, and connect the payment methods your customers already know.