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

Responses

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"
}