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
    • resalePrice number(float) Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • deal object
      Hide deal attributes Show deal attributes object
      • status string

        Values are consigned, sold, soldAndBilled, soldAndPaid, or disputed.

      • originalPriceWhenNew number(float)
      • resalePriceEstimate number(float) Required
      • cashOnDeposit number(float)
      • resalePrice number(float)
      • productDescription string Required
      • size string
      • sku string
      • productReferencePartner string Required
      • resaleDate string(date)
      • depositDate string(date)
      • dailyServiceFee number(float)
      • cancellationFee number(float)
      • createdAt string(date-time)
      • updatedAt string(date-time)
      • publishedAt string(date-time)
    • message string
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"
}