Jump to content

Trigger Deal Status

POST
https://sandbox.treddy.se/webhooks/v1/dealStatus
Simulates the deal.status event
This event will return the deal's status when updated. If no data is provided, we will send dummy data to the webhook.

Parameters


webhook-secret
string
header

Request


Body
{
  "dealId": "f4ca2694-81e7-11ed-a1eb-0242ac120002",
  "status": "Completed"
}
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": [
      "Draft",
      "Ad",
      "Signed",
      "Cancelled",
      "Shipping_Pending",
      "Shipping_Expired",
      "Shipping_In_Progress",
      "Shipping_Arrived",
      "Shipping_Returned",
      "Shipping_Review_Denied",
      "Completed"
    ],
    "type": "string"
  }
}

Response body


HTTP STATUS CODE SUMMARY
200 - Successful operation
400 - Invalid input
401 - Not Authorized
403 - Forbidden
405 - Invalid input