Add a discount to a deal

POST {{baseUrl}}/deals/:id/discounts

Adds a discount to a deal changing, the deal value if the deal has one-time products attached.

Request Body

{"description"=>"<string>", "amount"=>"<number>", "type"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:&quot;30195b0e-7577-4f52-a5cf-f3ee39b9d1e0&quot;,&quot;description&quot;:&quot;10%&quot;,&quot;amount&quot;:10,&quot;type&quot;:&quot;percentage&quot;,&quot;deal_id&quot;:1,&quot;created_at&quot;:&quot;2024-03-12T10:30:05Z&quot;,&quot;created_by&quot;:1,&quot;updated_at&quot;:&quot;2024-03-12T10:30:05Z&quot;,&quot;updated_by&quot;:1}}