Invoice discounts.
import { GetInvoiceDiscounts } from "@vercel/sdk/models/getinvoiceop.js";
let value: GetInvoiceDiscounts = {
billingPlanId: "<id>",
name: "<value>",
amount: "266.19",
};
Field | Type | Required | Description |
---|---|---|---|
billingPlanId |
string | ✔️ | Partner's billing plan ID. |
resourceId |
string | ➖ | Partner's resource ID. If not specified, indicates installation-wide discount. |
start |
string | ➖ | Start and end are only needed if different from the period's start/end. ISO 8601 timestamp. |
end |
string | ➖ | Start and end are only needed if different from the period's start/end. ISO 8601 timestamp. |
name |
string | ✔️ | Discount name. |
details |
string | ➖ | Additional discount details. |
amount |
string | ✔️ | Discount amount. A dollar-based decimal string. |