Billing
Creates a product
Changed onCreates a new product in the catalog.
The content field structure varies by quantity type and must include all required fields for that type:
- Required for all types: price, cost, taxable, billing
- MANUAL: quantity, productIds
- DEVICE_COUNTS: anyRole, groupIds, allGroups, nodeRoles (optional), productIds
- END_USER_COUNTS: anyRole, endUserRoles (optional), matchAllRoles, productIds
- BACKUP_STORAGE_COUNTS: anyRole, groupIds, allGroups, nodeRoles (optional), isStorageIncludedPerDevice, includedStorage, productIds
- TIME_ENTRIES: autoRoundTimeEntries, laborCodes, userRoles, onSiteMultiplier, offHoursMultiplier, remoteMultiplier, normalHoursMultiplier, scheduleTypeOffHours, scheduleTypeNormalHours, locationTypeOnSite, locationTypeRemote, includeTime, includedTimeAmountUnlimited, includedHours, unusedCarryOverUnlimited, carryOverLimit, productIds
The productUserRole field controls which technicians can use this product.
post/v2/billing/products
Request
- Base URLhttps://app.ninjarmm.com (the document declares no server; this is the origin it was published from)
- Auth
- HTTP bearer
- or API key in cookie sessionKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body */*
Example request
{
"name": "Hardware Support",
"description": "Monthly hardware support service",
"quantityType": "DEVICE_COUNTS",
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}Response
Product successfully created
Example response
{
"id": 1,
"name": "Hardware Support",
"description": "Monthly hardware support service",
"quantityType": "DEVICE_COUNTS",
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
{
"id": 1,
"name": "Admin"
}
]
},
"accountId": 8,
"taxId": 1,
"inheritTaxFromAgreement": true,
"active": true
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
endpoint added
- info