POST
https://api.fps.pro/invoices/webhook/resend
İstek formatıapplication/json
idrequired uuid | Fatura ID’si |
webhook_linkurl | Ödeme durumunun gönderileceği URL Varsayılan: from invoice |
Yanıt formatıdata object
statusnumber | Webhook'un endpoint'inize gönderilmesinin HTTP durumu |
response_bodyjson | Endpoint'inize veri gönderildikten sonra alınan yanıt gövdesi |
İstek örnekleri
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"
}'Başarılı yanıt
{
"status": 200,
"message": "success",
"data": {
"status": 200,
"response_body": "Webhook receive"
}
}Hatalar
Ayrıntılı yetkilendirme hataları listesi şu bölümdedir: Yetkilendirme - Hatalar
{
"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"
}