Simulate webhook
Test your callback handling by simulating a status change webhook.
Endpoint
POST /webhooks/simulate
Request Body Parameters
Parameter | Type | Required | Description | Example Value | Notes |
---|---|---|---|---|---|
invoice_id | string | Yes | Invoice to simulate for | invoice_123e4567-e89b-12d3-a456-426614174000 | Must exist |
status | string | Yes | Status to simulate | completed | Valid status enum |
cURL Example
curl -X POST https://api.itispay.com/api/v1/webhooks/simulate \
-H "Api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"invoice_id": "invoice_123e4567-e89b-12d3-a456-426614174000",
"status": "completed"
}'
Response
- 200 OK: JSON like {"status": "success", "message": "Webhook sent"}.
- Errors: 400, 404 (invoice not found), 422 (validation), 500.
Updated 18 days ago