Create a deal
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:
- Creates a new Deal with status
consigned
- Creates a new
cashOnDeposit
Payment for the partner & links it to the deal - Creates a wire transfer order (coming soon)
- Generates a PDF for the bill of sale
- Uploads bill of sale PDF to Wavo Pennylane with infos
- Sends a mail to the partner with the bill of sales attached
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"
}