Create a drawdown charge - REST API
This guide explains how to use the REST API to create a drawdown charge, including required fields and a sample request.
You can use the CRUD: Create a product rate plan charge operation to create a drawdown charge. WSDL version 114+ is required for the X-Zuora-WSDL-Version
header parameter.
Configure the following mandatory fields specific to a drawdown charge:
Field name |
Type |
Description |
---|---|---|
IsPrepaid |
boolean |
Set to |
PrepaidOperationType |
string(enum) |
The type of this charge. Values: |
DrawdownRate |
decimal |
Conversion rate between Usage UOM and Drawdown UOM.
|
DrawdownUom |
string |
Unit of measurement for this drawdown charge, should be the same as the |
test | test | test |
Sample REST API request to create a monthly recurring drawdown charge
Request: POST /v1/object/product-rate-plan-charge
{
"AccountingCode":"Accounts Receivable",
"BillingPeriodAlignment":"AlignToCharge",
"ChargeModel": "Per Unit Pricing",
"BillingPeriod": "Month",
"BillCycleType":"DefaultFromCustomer",
"ChargeType":"Usage",
"Name": "Drawdown",
"ProductRatePlanChargeTierData":
{
"ProductRatePlanChargeTier":
[
{
"Active": true,
"Currency":"USD",
"Price":"5"
}
]
},
"ProductRatePlanId":"2c92c0f87a85be74017a88ee747862a8",
"TriggerEvent":"ContractEffective",
"UOM":"Million calls",
//Fields related to drawdown charge
"IsPrepaid" : true,
"PrepaidOperationType": "drawdown",
"DrawdownUom" : "Million calls",
"DrawdownRate": 1,
}