Trigger Payment Status
POST
https://sandbox.treddy.se/webhooks/v1/paymentStatus
Simulates the payment.status event
If no data is provided, we will send dummy data to the webhook
Parameters
webhook-secret
string
header
Request
Trigger Payment Status
Body
"{\n \"dealId\": \"f4ca2694-81e7-11ed-a1eb-0242ac120002\",\n \"status\": \"Paid\",\n}"
Schema
{ "dealId": { "format": "uuid", "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", "type": "string" }, "status": { "enum": [ "Created", "Processing", "PaymentFailed", "PaymentCancelled", "Paid", "PendingPayOut", "PaidOut", "PayoutFailed", "PayoutCancelled" ], "type": "string" } }
Response body
HTTP STATUS CODE SUMMARY
200 - Successful operation
400 - Invalid input
401 - Not Authorized
403 - Forbidden
405 - Invalid input