Skip to content
Foxy CommerceHelp Center
  • Articles
  • API Documentation
  • System Status
  • Contact Us
Foxy CommerceHelp Center
  1. Articles
  2. Webhooks
Back to Webhooks

Pre-Payment Webhook

Sending a request to your own endpoint right before payment goes through — for inventory checks, price validation, or custom fraud rules.

What is the pre-payment webhook?

How the pre-payment webhook lets you validate transactions before payment — for inventory checks, custom rules, and fraud prevention — approving or rejecting at checkout.

Enable the pre-payment webhook

How to turn on the pre-payment webhook for a payment set — useful for last-minute inventory checks, fraud screening, or custom validation before a transaction reaches your gateway.

Pre-payment webhook payload reference

The JSON payload sent to your endpoint before a transaction reaches the payment gateway — helpful for building inventory checks, custom validations, or fraud screening.

Respond to the pre-payment webhook

How your endpoint should respond to approve or reject a transaction before it reaches the payment gateway, plus how to return a custom error message when declining one.

Need Help?

Can't find the answers you're looking for? Our team is here to help. Please click below to contact us.

Image Description
Foxy’s hosted cart & payment page allow you to sell anything, using your existing website or platform.

Company

  • About Us
  • How Foxy Works
  • Foxy For Good
  • Brand Assets

Product

  • Features
  • Use Cases
  • Pricing
  • Product Updates
  • Changelogs
  • Compare
  • Try Foxy Free

Security

  • Security Contact
  • PCI Compliance
  • Domains & Codebases

Support

  • Help Center
  • API Documentation
  • System Status
  • Contact Us
© 2026 Foxy Commerce
  • Terms of Service
  • Privacy Policy