Product
Solutions
Developers & Resources
INTEGRATION WORKBOOK

Connect client-to-cash into any application.

Build real-time provisioning pipelines. When a proposal is signed or invoice paid, dispatch authenticated webhooks to unlock access, create repositories, and alert your team.

// Verify Payeny HMAC-SHA256 Webhook
const crypto = require('crypto');

app.post('/payeny-webhook', (req, res) => {
  const signature = req.headers['x-payeny-signature'];
  const expected = crypto
    .createHmac('sha256', process.env.PAYENY_WEBHOOK_SECRET)
    .update(req.rawBody)
    .digest('hex');

  if (signature !== expected) return res.status(401).send('Bad Signature');
  
  const { type, data } = req.body;
  if (type === 'invoice.paid') {
    provisionClientWorkspace(data.customer_id);
  }
  res.json({ status: 'success' });
});
END-TO-END EVENT FLOW

What happens when a client completes checkout

1. Client Action
Contract Signed

Client completes signature on their branded space.

2. Core Engine
Audit Log Created

Payeny hashes document snapshot and issues deposit invoice.

3. Outbound Hook
Webhook Fired

Dispatches signed contract.executed JSON event.

4. Your Stack
Client Provisioned

Internal CRM updated, Slack channel notified, client access granted.

Explore the full API documentation

Review endpoint specifications, authentication schemas, and interactive code samples.

Go to API Reference