Jump to content

Trigger Price Suggestion

POST
https://sandbox.treddy.se/webhooks/v1/dealOffer
Simulates the deal.offer event

Parameters


webhook-secret
string
header

Request


Trigger deal offer on behalf of the buyer.
Body
{
  "dealId": "2f15dc68-ab66-44bc-ae1c-526a604b26e5",
  "shippingType": "Schenker",
  "price": 1000,
  "buyer": {
    "name": "Sven Svensson",
    "email": "sven.svensson@gmail.com"
  },
  "buyerRedirectUrl": "https://marknadsplats.se/ads/97c76862-d444-4a5d-a1de-781a6b7cc9cd",
  "sellerRedirectUrl": "https://marknadsplats.se/ads/97c76862-d444-4a5d-a1de-781a6b7cc9cd"
}
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"
  },
  "price": {
    "format": "float",
    "type": "number"
  },
  "shippingType": {
    "enum": [
      "Schenker",
      "Pickup"
    ],
    "type": "string"
  },
  "buyer": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string"
      },
      "email": {
        "type": "string"
      }
    }
  },
  "buyerRedirectUrl": {
    "type": "string"
  },
  "sellerRedirectUrl": {
    "type": "string"
  }
}

Response body


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