Update a deal

PUT /deals/{id}

Route to call when you have resold the object. By telling us the resalePrice, this will change the deal status to sold and stop the counting of service fees billed at the end of the month.

Path parameters

  • id number Required
application/json

Body Required

  • data object Required
    Hide data attribute Show data attribute object

Responses

PUT /deals/{id}
curl \
 --request PUT 'https://strapi.wavo-app.com/api/deals/{id}' \
 --header "Content-Type: application/json" \
 --data '{"data":{"resalePrice":42.0}}'
Request examples
{
  "data": {
    "resalePrice": 42.0
  }
}
Response examples (200)
{
  "deal": {
    "status": "consigned",
    "originalPriceWhenNew": 42.0,
    "resalePriceEstimate": 42.0,
    "cashOnDeposit": 42.0,
    "resalePrice": 42.0,
    "productDescription": "string",
    "size": "string",
    "sku": "string",
    "productReferencePartner": "string",
    "resaleDate": "2025-05-04",
    "depositDate": "2025-05-04",
    "dailyServiceFee": 42.0,
    "cancellationFee": 42.0,
    "createdAt": "2025-05-04T09:42:00Z",
    "updatedAt": "2025-05-04T09:42:00Z",
    "publishedAt": "2025-05-04T09:42:00Z"
  },
  "message": "string"
}