POST
https://api.fps.pro/invoices/webhook/resend
Format requestapplication/json
idrequired uuid | ID invoice |
webhook_linkurl | URL tempat status pembayaran dikirim kembali Default: from invoice |
Format responsdata object
statusnumber | Status HTTP pengiriman webhook ke endpoint Anda |
response_bodyjson | Body respons yang diterima setelah mengirim data ke endpoint Anda |
Contoh permintaan
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"
}'Respons berhasil
{
"status": 200,
"message": "success",
"data": {
"status": 200,
"response_body": "Webhook receive"
}
}Error
Daftar detail error otorisasi ada di Otorisasi - Error
{
"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"
}