Documentation Index
Fetch the complete documentation index at: https://docs.privexpay.com/llms.txt
Use this file to discover all available pages before exploring further.
Register a URL to get notified when a payment is completed. Perfect for WooCommerce, or any backend that needs to mark orders as paid automatically.
Register a Webhook:
curl --request POST \
--url https://api.privexpay.com/api-webhooks \
--header 'x-api-key: pp_live_your_api_key' \
--header 'Content-Type: application/json' \
--data '{ "url": "https://yourstore.com/privex/webhook" }'
When a payment completes, we POST this JSON to your URL. Just look up the checkout_id in your system and mark the order as paid.
POST https://yourstore.com/privex/webhook
{
"event": "payment.completed",
"checkout_id": "b3f1c2d4-7e8a-4d2b-9f1c-1234567890ab",
"payment_status": "completed",
"amount": 69.97,
"currency": "USD"
}