curl --request POST \
--url https://{workspace}.spreesuite.com/billspree/services/make-service \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"method": "Create",
"action": "Create Package",
"apiVersion": "v2",
"service": {
"code": "DEMO-001",
"name": "Demo Plan",
"serviceType": "Sale",
"chargingType": "Postpaid",
"postType": "Post Subscription",
"billingCycle": 4,
"dueDateOffset": 10,
"description": "Main billing plan",
"values": [],
"components": [],
"connectionInputs": [],
"meteredInputs": [],
"unmeteredInputs": [],
"bankAccounts": [],
"batches": [],
"invoiceTemplate": {
"templateID": null
},
"emailTemplate": {
"templateID": null
}
}
}
'