POST
https://api.fps.pro/invoices/webhook/test
Format requestapplication/json
iduuid | Identifier pembayaran yang tidak ada Default: generated |
webhook_linkrequired url | URL tempat status pembayaran dikirim kembali |
statusstring | Status pembayaran Default: paid |
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/test' \
--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",
"webhook_link": "https://merchant.example.com/webhooks/fps",
"status": "paid"
}'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": 422,
"message": "Validation Error",
"data": {
"field": "name",
"message": "field validation error"
}
}{
"status": 500,
"message": "Internal Server Error"
}