Resend webhook

Resend a webhook for an invoice

POST

https://api.fps.pro/invoices/webhook/resend

Request formatapplication/json

id

required

uuid

Invoice ID

webhook_link

url

URL where the payment status will be returned

Default: from invoice

Response formatdata object

status

number

HTTP status of webhook delivery to your endpoint

response_body

json

Response body received after sending data to your endpoint

Request examples

curl --request POST 'https://api.fps.pro/invoices/webhook/resend' \
  --header 'Content-Type: application/json' \
  --header 'X-Client-Id: YOUR_CLIENT_ID' \
  --header 'X-Timestamp: 1720000000' \
  --header 'X-Signature: YOUR_HMAC_SHA256_SIGNATURE' \
  --data '{
  "id": "0a718b02-131d-495a-9641-39ca52139c07"
}'

Successful response

{
  "status": 200,
  "message": "success",
  "data": {
    "status": 200,
    "response_body": "Webhook receive"
  }
}

Errors

Detailed authorization errors are listed in Authorization - Errors

{
  "status": 403,
  "message": "Forbidden"
}
{
  "status": 404,
  "message": "The invoice is not found"
}
{
  "status": 422,
  "message": "Validation Error",
  "data": {
    "field": "name",
    "message": "field validation error"
  }
}
{
  "status": 500,
  "message": "Internal Server Error"
}