offer discount
offer_discountRecords a discount on an invoice as none, percent, or fixed minor units; after sealing, apply changes only through approval with accept_invoice_change.
Instructions
Record a discount the freelancer is putting on the invoice. kind none uses value 0. kind percent takes a whole number from 1 to 100. kind fixed takes a whole number of minor units. After the invoice is sealed, a different discount is refused until accept_invoice_change applies an apply_discount suggestion. Do not invent a discount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| note | Yes | ||
| value | Yes | ||
| invoiceId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |