The Bearer authentication token is required to access this endpoint.
Invoice (sale) ID for which the webhook will be resent.
Response
Confirmation message for the webhook resend.
Invoice ID for which the webhook was resent.
Resend status. Possible values: - success: Webhook resent successfully -
pending: Resend in progress
curl -X POST "https://api.gates2b.com/invoices/resend-webhook/123" \
-H "Authorization: Bearer {seu-token}" \
-H "Content-Type: application/json"
Success
Error - Invoice not found
Error - Unauthorized
Error - Server
{
"message" : "Webhook reenviado com sucesso" ,
"invoice_id" : 123 ,
"status" : "success"
}
Important Notes
When should you use this endpoint?
This endpoint is useful when:
The webhook was not received at the configured URL
Webhook delivery failed (HTTP error other than 2xx)
You need to reprocess a notification manually
The automatic retry system failed to deliver the webhook
Retry Policy
The system attempts to resend webhooks automatically up to 3 times on failure. Use this endpoint when you need an additional manual resend.
HTTP Status Codes
200 : Webhook resent successfully
401 : Missing or invalid authentication token
404 : Invoice not found
500 : Internal error while resending webhook
Best Practices
Verify the Webhook URL : Before resending, confirm the URL is correctly
configured in the dashboard 2. Wait for Automatic Retry : The system
attempts automatic resends, wait a few minutes before using this endpoint 3.
Logs : Keep logs of received webhooks to simplify debugging 4.
Idempotency : This endpoint can be called multiple times without side
effects