v2
latestOpenAPI 3.0.12026-07-263104131.9 MBBilling
Updates an agreement.
Updates an agreement with all his properties and products.
put/v2/billing/agreements/{id}
Path parameters
idinteger required
Agreement ID
Request body
Example request
{
"name": "Agreement Example Name",
"description": "Agreement description example.",
"products": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"deviceCountsProducts": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"softwareLicenseProducts": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"backupStorageCountsProducts": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"timeEntriesProducts": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"endUserCountsProducts": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"content": {
"startDate": "2026-01-09T00:00:00.000Z",
"endDate": "2026-09-23T00:00:00.000Z",
"interval": "MONTHLY",
"billDate": "MONDAY"
},
"clientId": 2,
"invoiceGenerationType": "MANUAL",
"multiMatchDevices": true,
"multiMatchDeviceBackups": true,
"multiMatchEndUsers": true,
"billEmails": [
"test@mail.com"
],
"billCcEmails": [
"testcc@mail.com"
],
"billBccEmails": [
"testbcc@mail.com"
],
"businessHoursSource": "TICKETING",
"nextBillDate": "2026-01-09T00:00:00.000Z",
"nextBillingPeriodStartDate": "2026-01-01T00:00:00.000Z",
"displayIncludedTimeOnInvoices": true,
"dueDaysSource": "CUSTOM",
"dueDays": 30,
"ticketBillingSettings": {
"billTicketInAnyStatus": true,
"condition": {
"operator": "parent_in",
"value": "new"
}
},
"autoApproveInvoice": true,
"autoCompleteInvoice": true,
"taxId": 1,
"quickBooks": {
"externalTax": {
"id": "EX-TAX-01",
"name": "External_tax_name"
},
"allowOnlineCreditCardPayments": true,
"allowOnlineAchPayments": true,
"externalTaxRequest": {
"id": "EX-TAX-01",
"name": "External_tax_name"
}
},
"xero": {
"externalTax": {
"id": "EX-TAX-01",
"name": "External_tax_name"
},
"externalTaxRequest": {
"id": "EX-TAX-01",
"name": "External_tax_name"
}
},
"managedDeviceProducts": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"managedDeviceBackupProducts": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"laborTicketTimeEntryProducts": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"managedEndUserProducts": [
{
"id": 1,
"name": "Agreement product example name",
"description": "Agreement product example description.",
"quantityType": "DEVICE_COUNTS",
"productId": 116,
"order": 1,
"accountId": 1,
"group": true,
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
1,
2
]
},
"taxId": 5,
"inheritTaxFromAgreement": true
}
],
"invoiceNote": "Invoice note example.",
"quickBooksAgreementIntegrationDataRequest": {
"externalTax": {
"id": "EX-TAX-01",
"name": "External_tax_name"
},
"allowOnlineCreditCardPayments": true,
"allowOnlineAchPayments": true,
"externalTaxRequest": {
"id": "EX-TAX-01",
"name": "External_tax_name"
}
},
"xeroAgreementIntegrationDataRequest": {
"externalTax": {
"id": "EX-TAX-01",
"name": "External_tax_name"
},
"externalTaxRequest": {
"id": "EX-TAX-01",
"name": "External_tax_name"
}
},
"multiMatchSoftwareLicenses": true
}Response
Successfully updated agreement.
Example response
{
"client": {
"id": 789,
"name": "Acme Corporation"
},
"products": [
{
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
{
"id": 1,
"name": "Admin"
}
]
}
}
],
"deviceCountsProducts": [
{
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
{
"id": 1,
"name": "Admin"
}
]
}
}
],
"timeEntriesProducts": [
{
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
{
"id": 1,
"name": "Admin"
}
]
}
}
],
"endUserCountsProducts": [
{
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
{
"id": 1,
"name": "Admin"
}
]
}
}
],
"backupStorageCountsProducts": [
{
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
{
"id": 1,
"name": "Admin"
}
]
}
}
],
"softwareLicenseProducts": [
{
"productUserRole": {
"allowAllTechnicians": true,
"userRoles": [
{
"id": 1,
"name": "Admin"
}
]
}
}
]
}