Create a deal

POST /deals

Route to call when you have received and authentified the object. This call will trigger several steps, for which the final goal is for you to receive the payment:

  1. Creates a new Deal with status consigned
  2. Creates a new cashOnDeposit Payment for the partner & links it to the deal
  3. Creates a wire transfer order (coming soon)
  4. Generates a PDF for the bill of sale
  5. Uploads bill of sale PDF to Wavo Pennylane with infos
  6. Sends a mail to the partner with the bill of sales attached
application/json

Body Required

  • data object Required
    Hide data attributes Show data attributes object
    • productDescription string Required
    • productReferencePartner string Required
    • resalePriceEstimate number(float) Required
    • sku string
    • size string
    • originalPriceWhenNew number(float)

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
POST /deals
curl \
 --request POST 'https://strapi.wavo-app.com/api/deals' \
 --header "Content-Type: application/json" \
 --data '{"data":{"productDescription":"string","productReferencePartner":"string","resalePriceEstimate":42.0,"sku":"string","size":"string","originalPriceWhenNew":42.0}}'
Request examples
{
  "data": {
    "productDescription": "string",
    "productReferencePartner": "string",
    "resalePriceEstimate": 42.0,
    "sku": "string",
    "size": "string",
    "originalPriceWhenNew": 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"
}