quoteChargeCreate
Create a charge for a quote change. The quoteChargeCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: standard:write
mutation quoteChargeCreate ($quoteChangeId: ID!, $priceListChargeId: ID, $subscriptionChargeId: ID, $startDate: ISO8601Date!, $endDate: ISO8601Date, $name: String, $price: Float, $quantity: Int, $discount: Boolean, $evergreen: Boolean, $priceTiers: [QuotePriceTierAttributes!]) {
quoteChargeCreate (quoteChangeId: $quoteChangeId, priceListChargeId: $priceListChargeId, subscriptionChargeId: $subscriptionChargeId, startDate: $startDate, endDate: $endDate, name: $name, price: $price, quantity: $quantity, discount: $discount, evergreen: $evergreen, priceTiers: $priceTiers) {
errors
quoteCharge {
amount
couponId
createdAt
currencyId
currentPrice
currentQuantity
discount
endDate
evergreen
id
invoiceLineText
isRamp
isTrial
name
price
priceDecimals
priceListChargeId
prorationRate
quantity
quantityMax
quantityMin
quoteChangeId
startDate
subtotal
taxAmount
taxCode
tieredAveragePrice
updatedAt
vatCode
}
}
}
ArgumentsLink to Arguments section
{
"quoteChangeId": "456123",
"priceListChargeId": "456123",
"subscriptionChargeId": "456123",
"startDate": "2022-06-01",
"endDate": "2022-06-01",
"name": "",
"price": "1.00",
"quantity": 123,
"discount": true,
"evergreen": true,
"priceTiers": [
{
"starts": 123,
"price": "BigDecimal"
}
]
}
| Name | Type | Description |
|---|---|---|
| quoteChangeId | ID | |
| priceListChargeId | ID | |
| subscriptionChargeId | ID | |
| startDate | ISO8601Date | |
| endDate | ISO8601Date | |
| name | String | |
| price | Float | |
| quantity | Int | |
| discount | Boolean | |
| evergreen | Boolean | |
| priceTiers | List (QuotePriceTierAttributes) |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| quoteCharge | QuoteCharge |