createTaxRates
-Creates one or more tax rates
+createRepeatingInvoices
+Creates one or more repeating invoice templates
createTaxRates
-
/TaxRates
+ /RepeatingInvoices
Usage and SDK Samples
xero_client.set_token_set(user.token_set)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
-
-tax_component = {
- name: "State Tax",
- rate: 2.25
-}
-taxComponent = []
-tax_components << tax_component
-
-tax_rate = {
- name: "CA State Tax",
- taxComponents: taxComponents,
-
-taxRates = {
- tax_rates: [tax_rate]
-}
+summarize_errors = true
begin
- response = xero_client.accounting_api.create_tax_rates(xero_tenant_id, taxRates)
+ response = xero_client.accounting_api.create_repeating_invoices(xero_tenant_id, repeatingInvoices, summarize_errors)
return response
rescue XeroRuby::ApiError => e
- puts "Exception when calling create_tax_rates: #{e}"
+ puts "Exception when calling create_repeating_invoices: #{e}"
end
Scopes
accounting.settings | -Grant read-write access to organisation and account settings | +accounting.transactions | +Grant read-write access to bank transactions, credit notes, invoices, repeating invoices |
Parameters
Parameters
Parameters
Name | +Description | +
---|---|
summarizeErrors | +
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+If false return 200 OK and mix of successfully created objects and any with validation errors
+
+ |
+
-
createTrackingCategory
-Create tracking categories
+createTaxRates
+Creates one or more tax rates
createTrackingCategory
-
/TrackingCategories
+ /TaxRates
Usage and SDK Samples
xero_client.set_token_set(user.token_set)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
-trackingCategory = {
- name: "Foobar"
-}
+tax_component = {
+ name: "State Tax",
+ rate: 2.25
+}
+taxComponent = []
+tax_components << tax_component
+
+tax_rate = {
+ name: "CA State Tax",
+ taxComponents: taxComponents,
+
+taxRates = {
+ tax_rates: [tax_rate]
+}
begin
- response = xero_client.accounting_api.create_tracking_category(xero_tenant_id, trackingCategory)
+ response = xero_client.accounting_api.create_tax_rates(xero_tenant_id, taxRates)
return response
rescue XeroRuby::ApiError => e
- puts "Exception when calling create_tracking_category: #{e}"
+ puts "Exception when calling create_tax_rates: #{e}"
end
Parameters
Parameters
Parameters
+
deleteAccount
+Deletes a chart of accounts
++
/Accounts/{AccountID}
+ +
Usage and SDK Samples
+ + +xero_client.set_token_set(user.token_set)
+
+xero_tenant_id = 'YOUR_XERO_TENANT_ID'
+account_id = '00000000-0000-0000-0000-000000000000'
+
+begin
+ response = xero_client.accounting_api.delete_account(xero_tenant_id, account_id)
+ return response
+rescue XeroRuby::ApiError => e
+ puts "Exception when calling delete_account: #{e}"
+end
+
+ Scopes
+accounting.settings | +Grant read-write access to organisation and account settings | +
Parameters
+Name | +Description | +||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AccountID* | +
+
+
+
+
+
+
+ UUID
+
+
+ (uuid)
+
+
+
+Unique identifier for Account object
@@ -15742,6 +15962,276 @@
Parameters+
+
+
+
+
+
+
+
+
+ deleteBatchPayment+Updates a specific batch payment for invoices and credit notes ++
+ + Usage and SDK Samples+ + +
+
+
+
+
+
+ Scopes+
Parameters+Header parameters
+
Body parameters
+
+
+
+
+
+
+
+
+
+
+ deleteBatchPaymentByUrlParam+Updates a specific batch payment for invoices and credit notes ++
+ + Usage and SDK Samples+ + +
+
+
+
+
+
+ Scopes+
Parameters+Path parameters
+
Header parameters
+
Body parameters
+
@@ -39627,6 +40117,150 @@
Parameters |
+
+
updateOrCreateRepeatingInvoices
+Creates or deletes one or more repeating invoice templates
++
/RepeatingInvoices
+ +
Usage and SDK Samples
+ + +xero_client.set_token_set(user.token_set)
+
+xero_tenant_id = 'YOUR_XERO_TENANT_ID'
+summarize_errors = true
+
+begin
+ response = xero_client.accounting_api.update_or_create_repeating_invoices(xero_tenant_id, repeatingInvoices, summarize_errors)
+ return response
+rescue XeroRuby::ApiError => e
+ puts "Exception when calling update_or_create_repeating_invoices: #{e}"
+end
+
+ Scopes
+accounting.transactions | +Grant read-write access to bank transactions, credit notes, invoices, repeating invoices | +
Parameters
+Name | +Description | +
---|---|
xero-tenant-id* | +
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+Xero identifier for Tenant
+
+
+ Required
+
+ |
+
Name | +Description | +
---|---|
repeatingInvoices * | +
+
+
+
+
+
+ RepeatingInvoices
+
+
+
+ RepeatingInvoices with an array of repeating invoice objects in body of request
+
+
+ Required
+
+ |
Name | +Description | +
---|---|
summarizeErrors | +
+
+
+
+
+
+
+
+
+ Boolean
+
+
+
+
+If false return 200 OK and mix of successfully created objects and any with validation errors
+
+ |
Parameters
} }, "required" : true +} + + ++
updateRepeatingInvoice
+Deletes a specific repeating invoice template
++
/RepeatingInvoices/{RepeatingInvoiceID}
+ +
Usage and SDK Samples
+ + +xero_client.set_token_set(user.token_set)
+
+xero_tenant_id = 'YOUR_XERO_TENANT_ID'
+repeating_invoice_id = '00000000-0000-0000-0000-000000000000'
+
+begin
+ response = xero_client.accounting_api.update_repeating_invoice(xero_tenant_id, repeating_invoice_id, repeatingInvoices)
+ return response
+rescue XeroRuby::ApiError => e
+ puts "Exception when calling update_repeating_invoice: #{e}"
+end
+
+ Scopes
+accounting.transactions | +Grant read-write access to bank transactions, credit notes, invoices, repeating invoices | +
Parameters
+Name | +Description | +
---|---|
RepeatingInvoiceID* | +
+
+
+
+
+
+
+
+
+ UUID
+
+
+ (uuid)
+
+
+
+
+Unique identifier for a Repeating Invoice
+
+
+ Required
+
+ |
+
Name | +Description | +
---|---|
xero-tenant-id* | +
+
+
+
+
+
+
+
+
+ String
+
+
+
+
+Xero identifier for Tenant
+
+
+ Required
+
+ |
+
Name | +Description | +
---|---|
repeatingInvoices * | +
+
+
+
+
+ RepeatingInvoices
+
+
+
+
+
+
+ Required
+
+ |