Skip to content

Releases: XeroAPI/xero-python

1.19.0

28 Sep 23:18
b230d44

Choose a tag to compare

Generates Xero-Python 1.19.0 from OAS 2.30.1

Description

Accounting API

  • Adds new method for Batch Payments: get_batch_payment which takes batch_payment_id as a parameter
  • Adds missing report tax types to the enum (CAPEXINPUT, UNDEFINED, CAPEXOUTPUT, ZEROEXPOUTPUT, GOODSIMPORT, NONEINPUT, NOTREPORTED)

AU Payroll API

  • Update the LeaveCategoryCode enum value PERSONALCARERSLEAVE to PERSONALSICKCARERSLEAVE to match the updated value in the API.
  • Captures all the updates made to the AU Payroll Employees API as part of the STP 2 Initiative. A detailed description of changes can be found here in the Xero API Developer Docs.

Projects API

  • Fixes create_task method to return object of type Task

Release Notes

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

1.18.0

30 Aug 22:25
80615e1

Choose a tag to compare

Generates Xero-Python 1.18.0 from OAS 2.27.0

Description

Accounting API

  • Added support for Xero Go organisations that have invited in their accountant.
  • Add new org type LITE to Class model

AU Payroll

  • Add new properties to the LeaveType object: LeaveCategoryCode and SGCExempt (See docs)
  • Add new schema definitions:
    LeaveCategoryCode enum

Release Notes

API consumers will need to categorize all leave pay items as part of STP phase 2. The leave category code will be used to determine which category a new leave pay item will be filed as.
There are different rules for pay items created with these leave categories, some cannot be SGC exempt

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

1.17.0

05 Aug 18:41
effe79b

Choose a tag to compare

Description

Generates Xero-Python 1.17.0 from Xero-OpenAPI 2.25.0

Accounting API

  • Adds new methods for Repeating Invoices: createRepeatingInvoices, updateOrCreateRepeatingInvoices, and updateRepeatingInvoice
  • Adds new method for Batch Payments: deleteBatchPayment

AU Payroll API

  • Adds EarningsType enum values PAIDPARENTALLEAVE and WORKERSCOMPENSATION
  • Adds missing tax declaration HasLoanOrStudentDebt

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

1.16.0

23 May 18:54
9fd3190

Choose a tag to compare

Generates Xero-Python 1.16.0 from Xero-OpenAPI 2.23.0

Accounting API

Adds new tax rate for Singapore: TXRCTSINPUT - Imported services attributable to taxable supplies

Project API

Adds CreateTask, UpdateTask, and DeleteTask methods

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

1.15.0

10 May 22:56
36c9132

Choose a tag to compare

Generates Xero-Python 1.15.0 from Xero-OpenAPI 2.22.4

Accounting API

Organisation model Class enum updated to include ULTIMATE
New method getJournalByNumber added
BADDEBTRELIEF , IGDSINPUT3, SROVR, TOURISTREFUND, TXRCN33INPUT, TXRCREINPUT, TXRCESSINPUT have been added as both a TaxType and ReportTaxType

Finance API

StatementResponse model updated to include startBalance and endBalance properties

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

1.14.0

14 Apr 22:11
8b2cffd

Choose a tag to compare

Generates Xero-Python 1.14.0 from Xero-OpenAPI 2.21.0

App Store API

Adds metered capabilities for app store subscriptions end point

UK Payroll API

support new NI Category values (F, I, S, L, V)

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

1.13.1

16 Mar 16:31
e5c30b6

Choose a tag to compare

Generates Xero-Python 1.13.1 from Xero-OpenAPI 2.19.3

Accounting API

Organisation model OrganisationType enum updated to include INDIVIDUAL

Finance API

Some fields were set to 'date-time' when they are actually 'date'.

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

1.13.0

04 Mar 00:07
66856a7

Choose a tag to compare

Generates Xero-Python 1.13.0 from Xero-OpenAPI 2.19.1

Accounting API

line_item model updated to include item object that is returned in BankTransactions, Invoices, Credit Notes - new model is line_item_item

Finance API

Adds Bank Statements Plus endpoint via get_bank_statement_accounting method and associated models

UK Payroll API

employee model update to include is_off_payroll_worker boolean property

Adds is_off_payroll_worker as an available query param for GET /Employees

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

1.12.0

02 Feb 22:26
53a028c

Choose a tag to compare

Generates Xero-Python 1.12.0 from Xero-OpenAPI 2.17.4

App Store API

Plan.status enum updated to include CANCELED, available options are:
ACTIVE, CANCELED, PENDINGACTIVATION

Subscription.status type corrected from string to Subscription.StatusEnum, available options are:
ACTIVE, CANCELED, PASTDUE

SubscriptionItem updated to include status enum, available options are:
ACTIVE, CANCELED, PENDINGACTIVATION

Files API

Quote added to ObjectGroup enum
SalesQuote added to ObjectType enum

AU Payroll API

AllowanceCategory enum added to EarningsRate, available options are:
NONDEDUCTIBLE, UNIFORM, PRIVATEVEHICLE, HOMEOFFICE, TRANSPORT, GENERAL, OTHER

AllowanceType enum updated to include TOOLS, TASKS, QUALIFICATIONS, available options are:
CAR, TRANSPORT, LAUNDRY, MEALS, TRAVEL, JOBKEEPER, TOOLS, TASKS, QUALIFICATIONS, OTHER

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

1.11.0

09 Nov 22:55
fd4b000

Choose a tag to compare

Implements the endpoints available in Xero's Finance API Spec.

Also updates the Contact model to match Xero's Accounting API Spec.

Description

https://developer.xero.com/documentation/api/finance/overview

Release Notes

The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.

FinanceAPI methods added:

  • get_accounting_activity_account_usage
  • get_accounting_activity_lock_history
  • get_accounting_activity_report_history
  • get_accounting_activity_user_activities
  • get_cash_validation
  • get_financial_statement_balance_sheet
  • get_financial_statement_cashflow
  • get_financial_statement_profit_and_loss
  • get_financial_statement_trial_balance
  • get_financial_statement_contacts_expense
  • get_financial_statement_contacts_revenue

Finance models added

  • AccountUsage
  • AccountUsageResponse
  • BalanceSheetAccountDetail
  • BalanceSheetAccountGroup
  • BalanceSheetAccountType
  • BalanceSheetResponse
  • BankStatementResponse
  • CashAccountResponse
  • CashBalance
  • CashValidationResponse
  • CashflowAccount
  • CashflowActivity
  • CashflowResponse
  • CashflowType
  • ContactDetail
  • ContactTotalDetail
  • ContactTotalOther
  • CurrentStatementResponse
  • DataSourceResponse
  • HistoryRecordResponse
  • IncomeByContactResponse
  • LockHistoryModel
  • LockHistoryResponse
  • ManualJournalTotal
  • PnlAccount
  • PnlAccountClass
  • PnlAccountType
  • PracticeResponse
  • Problem
  • ProfitAndLossResponse
  • ReportHistoryModel
  • ReportHistoryResponse
  • StatementBalanceResponse
  • StatementLinesResponse
  • TotalDetail
  • TotalOther
  • TrialBalanceAccount
  • TrialBalanceEntry
  • TrialBalanceMovement
  • TrialBalanceResponse
  • UserActivitiesResponse
  • UserResponse

Accounting Contact model updated:

  • company_number - setting and retrieving Registration Number for a company/Business
  • merged_to_contact_id - retrieving the ID for the destination of a merged contact
  • sales_default_line_amount_type - retrieving the default sales line amount types for a contact
  • purchases_default_line_amount_type - retrieving the default purchases line amount types for a contact

Types of Changes

  • New feature (non-breaking change that adds functionality)