Simulate webhook

Test your callback handling by simulating a status change webhook.

Endpoint

POST /webhooks/simulate

Request Body Parameters

ParameterTypeRequiredDescriptionExample ValueNotes
invoice_idstringYesInvoice to simulate forinvoice_123e4567-e89b-12d3-a456-426614174000Must exist
statusstringYesStatus to simulatecompletedValid 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.