-
+
# configure api_client for use with xero-python sdk client
api_client = ApiClient(
Configuration(
@@ -19684,29 +23237,29 @@ Usage and SDK Samples
api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-def accounting_get_bank_transfer_attachments():
+def accounting_get_bank_transfer_history():
api_instance = AccountingApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
bank_transfer_id = '00000000-0000-0000-0000-000000000000'
try:
- api_response = api_instance.get_bank_transfer_attachments(xero_tenant_id, bank_transfer_id)
+ api_response = api_instance.get_bank_transfer_history(xero_tenant_id, bank_transfer_id)
print(api_response)
except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getBankTransferAttachments: %s\n" % e)
+ print("Exception when calling AccountingApi->getBankTransferHistory: %s\n" % e)
Scopes
- | accounting.attachments |
- Grant read-write access to attachments |
+ accounting.transactions |
+ Grant read-write access to bank transactions, credit notes, invoices, repeating invoices |
- | accounting.attachments.read |
- Grant read-only access to attachments |
+ accounting.transactions.read |
+ Grant read-only access to invoices |
@@ -19721,7 +23274,7 @@
Parameters
-
+
@@ -19754,7 +23307,7 @@ Parameters
-
+
@@ -19777,11 +23330,11 @@ Parameters
-
-
+
+
- getBankTransferHistory
- Retrieves history from a specific bank transfer using a unique bank transfer Id
+ getBankTransfers
+ Retrieves all bank transfers
@@ -19789,17 +23342,17 @@ getBankTransferHistory
- /BankTransfers/{BankTransferID}/History
+ /BankTransfers
Usage and SDK Samples
-
+
# configure api_client for use with xero-python sdk client
api_client = ApiClient(
Configuration(
@@ -19813,16 +23366,19 @@ Usage and SDK Samples
api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-def accounting_get_bank_transfer_history():
+def accounting_get_bank_transfers():
api_instance = AccountingApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
- bank_transfer_id = '00000000-0000-0000-0000-000000000000'
+ if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00")
+ where = 'HasAttachments==true'
+ order = 'Amount ASC'
+ include_deleted = 'True'
try:
- api_response = api_instance.get_bank_transfer_history(xero_tenant_id, bank_transfer_id)
+ api_response = api_instance.get_bank_transfers(xero_tenant_id, if_modified_since, where, order, include_deleted)
print(api_response)
except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getBankTransferHistory: %s\n" % e)
+ print("Exception when calling AccountingApi->getBankTransfers: %s\n" % e)
Scopes
@@ -19840,28 +23396,25 @@ Scopes
Parameters
- Path parameters
+ Header parameters
| Name |
Description |
- | BankTransferID* |
+ | xero-tenant-id* |
-
+
- UUID
+ String
-
- (uuid)
-
-Xero generated unique identifier for a bank transfer
+Xero identifier for Tenant
@@ -19870,20 +23423,43 @@ Parameters
|
+
+
+ | If-Modified-Since |
+
+
+
+
+
+
+
+ Date
+
+
+ (date-time)
+
+
+
+Only records created or modified since this timestamp will be returned
+
+
+
+
+ |
- Header parameters
+ Query parameters
| Name |
Description |
- | xero-tenant-id* |
+ | where |
-
+
@@ -19891,12 +23467,49 @@ Parameters
-Xero identifier for Tenant
+Filter by an any element
+
+
+
+
+ |
+
+
+ | order |
+
+
+
+
+
+
+
+ String
+
+
+
+Order by an any element
+
+
+
+
+ |
+
+
+ | includeDeleted |
+
+
+
+
+
+
+
+ Boolean
+
+
+
+e.g. includeDeleted=true - Bank transfers with a status of DELETED will be included in the response
-
- Required
-
|
@@ -19906,11 +23519,11 @@ Parameters
-
-
+
+
- getBankTransfers
- Retrieves all bank transfers
+ getBatchPayment
+ Retrieves a specific batch payment using a unique batch payment Id
@@ -19918,17 +23531,17 @@ getBankTransfers
- /BankTransfers
+ /BatchPayments/{BatchPaymentID}
Usage and SDK Samples
-
+
# configure api_client for use with xero-python sdk client
api_client = ApiClient(
Configuration(
@@ -19942,18 +23555,16 @@ Usage and SDK Samples
api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-def accounting_get_bank_transfers():
+def accounting_get_batch_payment():
api_instance = AccountingApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
- if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00")
- where = 'HasAttachments==true'
- order = 'Amount ASC'
+ batch_payment_id = '00000000-0000-0000-0000-000000000000'
try:
- api_response = api_instance.get_bank_transfers(xero_tenant_id, if_modified_since, where, order)
+ api_response = api_instance.get_batch_payment(xero_tenant_id, batch_payment_id)
print(api_response)
except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getBankTransfers: %s\n" % e)
+ print("Exception when calling AccountingApi->getBatchPayment: %s\n" % e)
Scopes
@@ -19971,25 +23582,28 @@ Scopes
Parameters
- Header parameters
+ Path parameters
| Name |
Description |
- | xero-tenant-id* |
+ | BatchPaymentID* |
-
+
- String
+ UUID
+
+ (uuid)
+
-Xero identifier for Tenant
+Unique identifier for BatchPayment
@@ -19998,63 +23612,20 @@ Parameters
|
-
-
- | If-Modified-Since |
-
-
-
-
-
-
-
- Date
-
-
- (date-time)
-
-
-
-Only records created or modified since this timestamp will be returned
-
-
-
-
- |
- Query parameters
+ Header parameters
| Name |
Description |
- | where |
-
-
-
-
-
-
-
- String
-
-
-
-Filter by an any element
-
-
-
-
- |
-
-
- | order |
+ | xero-tenant-id* |
-
+
@@ -20062,9 +23633,12 @@ Parameters
-Order by an any element
+Xero identifier for Tenant
+
+ Required
+
|
@@ -20774,7 +24348,7 @@ Scopes
| accounting.budgets.read |
- |
+ Grant read-only access to read budgets |
@@ -20953,7 +24527,7 @@ Scopes
| accounting.budgets.read |
- |
+ Grant read-only access to read budgets |
@@ -22382,12 +25956,12 @@ Usage and SDK Samples
where = 'ContactStatus=="ACTIVE"'
order = 'Name ASC'
ids = ["00000000-0000-0000-0000-000000000000"]
- include_archived = 'true'
- summary_only = 'true'
- search_term = 'searchTerm=Joe Bloggs'
+ include_archived = 'True'
+ summary_only = 'True'
+ search_term = 'Joe Bloggs'
try:
- api_response = api_instance.get_contacts(xero_tenant_id, if_modified_since, where, order, ids, page, include_archived, summary_only, search_term)
+ api_response = api_instance.get_contacts(xero_tenant_id, if_modified_since, where, order, ids, page, include_archived, summary_only, search_term, pageSize)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->getContacts: %s\n" % e)
@@ -22608,6 +26182,26 @@ Parameters
|
+
+
+ | pageSize |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Number of records to retrieve per page
+
+
+
+
+ |
@@ -23030,468 +26624,7 @@ Parameters
-
-
-
-
- String
-
-
-
-Xero identifier for Tenant
-
-
-
- Required
-
-
-
- |
-
-
- | contentType* |
-
-
-
-
-
-
-
- String
-
-
-
-The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
-
-
-
- Required
-
-
-
- |
-
-
-
-
-
-
-
-
-
- getCreditNoteAttachmentById
- Retrieves a specific attachment from a specific credit note using a unique attachment Id
-
-
-
-
-
-
-
- /CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}
-
- Usage and SDK Samples
-
-
-
-
-
- # configure api_client for use with xero-python sdk client
-api_client = ApiClient(
- Configuration(
- debug=false,
- oauth2_token=OAuth2Token(
- client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET"
- ),
- ),
- pool_threads=1,
-)
-
-api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-
-def accounting_get_credit_note_attachment_by_id():
- api_instance = AccountingApi(api_client)
- xero_tenant_id = 'YOUR_XERO_TENANT_ID'
- credit_note_id = '00000000-0000-0000-0000-000000000000'
- attachment_id = '00000000-0000-0000-0000-000000000000'
- content_type = 'image/jpg'
-
- try:
- api_response = api_instance.get_credit_note_attachment_by_id(xero_tenant_id, credit_note_id, attachment_id, content_type)
- print(api_response)
- except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getCreditNoteAttachmentById: %s\n" % e)
-
-
- Scopes
-
-
-
- | accounting.attachments |
- Grant read-write access to attachments |
-
-
-
- | accounting.attachments.read |
- Grant read-only access to attachments |
-
-
-
- Parameters
- Path parameters
-
-
- | Name |
- Description |
-
- | CreditNoteID* |
-
-
-
-
-
-
-
- UUID
-
-
- (uuid)
-
-
-
-Unique identifier for a Credit Note
-
-
-
- Required
-
-
-
- |
-
-
- | AttachmentID* |
-
-
-
-
-
-
-
- UUID
-
-
- (uuid)
-
-
-
-Unique identifier for Attachment object
-
-
-
- Required
-
-
-
- |
-
-
-
- Header parameters
-
-
- | Name |
- Description |
-
- | xero-tenant-id* |
-
-
-
-
-
-
-
- String
-
-
-
-Xero identifier for Tenant
-
-
-
- Required
-
-
-
- |
-
-
- | contentType* |
-
-
-
-
-
-
-
- String
-
-
-
-The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
-
-
-
- Required
-
-
-
- |
-
-
-
-
-
-
-
-
-
- getCreditNoteAttachments
- Retrieves attachments for a specific credit notes
-
-
-
-
-
-
-
- /CreditNotes/{CreditNoteID}/Attachments
-
- Usage and SDK Samples
-
-
-
-
-
- # configure api_client for use with xero-python sdk client
-api_client = ApiClient(
- Configuration(
- debug=false,
- oauth2_token=OAuth2Token(
- client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET"
- ),
- ),
- pool_threads=1,
-)
-
-api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-
-def accounting_get_credit_note_attachments():
- api_instance = AccountingApi(api_client)
- xero_tenant_id = 'YOUR_XERO_TENANT_ID'
- credit_note_id = '00000000-0000-0000-0000-000000000000'
-
- try:
- api_response = api_instance.get_credit_note_attachments(xero_tenant_id, credit_note_id)
- print(api_response)
- except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getCreditNoteAttachments: %s\n" % e)
-
-
- Scopes
-
-
-
- | accounting.attachments |
- Grant read-write access to attachments |
-
-
-
- | accounting.attachments.read |
- Grant read-only access to attachments |
-
-
-
- Parameters
- Path parameters
-
-
- | Name |
- Description |
-
- | CreditNoteID* |
-
-
-
-
-
-
-
- UUID
-
-
- (uuid)
-
-
-
-Unique identifier for a Credit Note
-
-
-
- Required
-
-
-
- |
-
-
-
- Header parameters
-
-
- | Name |
- Description |
-
- | xero-tenant-id* |
-
-
-
-
-
-
-
- String
-
-
-
-Xero identifier for Tenant
-
-
-
- Required
-
-
-
- |
-
-
-
-
-
-
-
-
-
- getCreditNoteHistory
- Retrieves history records of a specific credit note
-
-
-
-
-
-
-
- /CreditNotes/{CreditNoteID}/History
-
- Usage and SDK Samples
-
-
-
-
-
- # configure api_client for use with xero-python sdk client
-api_client = ApiClient(
- Configuration(
- debug=false,
- oauth2_token=OAuth2Token(
- client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET"
- ),
- ),
- pool_threads=1,
-)
-
-api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-
-def accounting_get_credit_note_history():
- api_instance = AccountingApi(api_client)
- xero_tenant_id = 'YOUR_XERO_TENANT_ID'
- credit_note_id = '00000000-0000-0000-0000-000000000000'
-
- try:
- api_response = api_instance.get_credit_note_history(xero_tenant_id, credit_note_id)
- print(api_response)
- except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getCreditNoteHistory: %s\n" % e)
-
-
- Scopes
-
-
-
- | accounting.transactions |
- Grant read-write access to bank transactions, credit notes, invoices, repeating invoices |
-
-
-
- | accounting.transactions.read |
- Grant read-only access to invoices |
-
-
-
- Parameters
- Path parameters
-
-
- | Name |
- Description |
-
- | CreditNoteID* |
-
-
-
-
-
-
-
- UUID
-
-
- (uuid)
-
-
-
-Unique identifier for a Credit Note
-
-
-
- Required
-
-
-
- |
-
-
-
- Header parameters
-
-
- | Name |
- Description |
-
- | xero-tenant-id* |
-
-
-
-
+
@@ -23508,17 +26641,40 @@ Parameters
|
+
+
+ | contentType* |
+
+
+
+
+
+
+
+ String
+
+
+
+The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
+
+
+
+ Required
+
+
+
+ |
-
-
+
+
- getCreditNotes
- Retrieves any credit notes
+ getCreditNoteAttachmentById
+ Retrieves a specific attachment from a specific credit note using a unique attachment Id
@@ -23526,17 +26682,17 @@ getCreditNotes
- /CreditNotes
+ /CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}
Usage and SDK Samples
-
+
# configure api_client for use with xero-python sdk client
api_client = ApiClient(
Configuration(
@@ -23550,54 +26706,57 @@ Usage and SDK Samples
api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-def accounting_get_credit_notes():
+def accounting_get_credit_note_attachment_by_id():
api_instance = AccountingApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
- if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00")
- where = 'Status=="DRAFT"'
- order = 'CreditNoteNumber ASC'
+ credit_note_id = '00000000-0000-0000-0000-000000000000'
+ attachment_id = '00000000-0000-0000-0000-000000000000'
+ content_type = 'image/jpg'
try:
- api_response = api_instance.get_credit_notes(xero_tenant_id, if_modified_since, where, order, page, unitdp)
+ api_response = api_instance.get_credit_note_attachment_by_id(xero_tenant_id, credit_note_id, attachment_id, content_type)
print(api_response)
except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getCreditNotes: %s\n" % e)
+ print("Exception when calling AccountingApi->getCreditNoteAttachmentById: %s\n" % e)
Scopes
- | accounting.transactions |
- Grant read-write access to bank transactions, credit notes, invoices, repeating invoices |
+ accounting.attachments |
+ Grant read-write access to attachments |
- | accounting.transactions.read |
- Grant read-only access to invoices |
+ accounting.attachments.read |
+ Grant read-only access to attachments |
Parameters
- Header parameters
+ Path parameters
| Name |
Description |
- | xero-tenant-id* |
+ | CreditNoteID* |
-
+
- String
+ UUID
+
+ (uuid)
+
-Xero identifier for Tenant
+Unique identifier for a Credit Note
@@ -23608,41 +26767,44 @@ Parameters
|
- | If-Modified-Since |
+ | AttachmentID* |
-
+
- Date
+ UUID
- (date-time)
+ (uuid)
-Only records created or modified since this timestamp will be returned
+Unique identifier for Attachment object
+
+ Required
+
|
- Query parameters
+ Header parameters
| Name |
Description |
- | where |
+ | xero-tenant-id* |
-
+
@@ -23650,19 +26812,22 @@ Parameters
-Filter by an any element
+Xero identifier for Tenant
+
+ Required
+
|
- | order |
+ | contentType* |
-
+
@@ -23670,49 +26835,12 @@ Parameters
-Order by an any element
-
-
-
-
- |
-
-
- | page |
-
-
-
-
-
-
-
- Integer
-
-
-
-e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
-
-
-
-
- |
-
-
- | unitdp |
-
-
-
-
-
-
-
- Integer
-
-
-
-e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
+The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
+
+ Required
+
|
@@ -23722,11 +26850,11 @@ Parameters
-
-
+
+
- getCurrencies
- Retrieves currencies for your Xero organisation
+ getCreditNoteAttachments
+ Retrieves attachments for a specific credit notes
@@ -23734,17 +26862,17 @@ getCurrencies
- /Currencies
+ /CreditNotes/{CreditNoteID}/Attachments
Usage and SDK Samples
-
+
# configure api_client for use with xero-python sdk client
api_client = ApiClient(
Configuration(
@@ -23758,53 +26886,55 @@ Usage and SDK Samples
api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-def accounting_get_currencies():
+def accounting_get_credit_note_attachments():
api_instance = AccountingApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
- where = 'Code=="USD"'
- order = 'Code ASC'
+ credit_note_id = '00000000-0000-0000-0000-000000000000'
try:
- api_response = api_instance.get_currencies(xero_tenant_id, where, order)
+ api_response = api_instance.get_credit_note_attachments(xero_tenant_id, credit_note_id)
print(api_response)
except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getCurrencies: %s\n" % e)
+ print("Exception when calling AccountingApi->getCreditNoteAttachments: %s\n" % e)
Scopes
- | accounting.settings |
- Grant read-write access to organisation and account settings |
+ accounting.attachments |
+ Grant read-write access to attachments |
- | accounting.settings.read |
- Grant read-only access to organisation and account settings |
+ accounting.attachments.read |
+ Grant read-only access to attachments |
Parameters
- Header parameters
+ Path parameters
| Name |
Description |
- | xero-tenant-id* |
+ | CreditNoteID* |
-
+
- String
+ UUID
+
+ (uuid)
+
-Xero identifier for Tenant
+Unique identifier for a Credit Note
@@ -23816,37 +26946,17 @@ Parameters
|
- Query parameters
+ Header parameters
| Name |
Description |
- | where |
-
-
-
-
-
-
-
- String
-
-
-
-Filter by an any element
-
-
-
-
- |
-
-
- | order |
+ | xero-tenant-id* |
-
+
@@ -23854,9 +26964,12 @@ Parameters
-Order by an any element
+Xero identifier for Tenant
+
+ Required
+
|
@@ -23866,11 +26979,11 @@ Parameters
-
-
+
+
- getEmployee
- Retrieves a specific employee used in Xero payrun using a unique employee Id
+ getCreditNoteHistory
+ Retrieves history records of a specific credit note
@@ -23878,17 +26991,17 @@ getEmployee
- /Employees/{EmployeeID}
+ /CreditNotes/{CreditNoteID}/History
Usage and SDK Samples
-
+
# configure api_client for use with xero-python sdk client
api_client = ApiClient(
Configuration(
@@ -23902,29 +27015,29 @@ Usage and SDK Samples
api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-def accounting_get_employee():
+def accounting_get_credit_note_history():
api_instance = AccountingApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
- employee_id = '00000000-0000-0000-0000-000000000000'
+ credit_note_id = '00000000-0000-0000-0000-000000000000'
try:
- api_response = api_instance.get_employee(xero_tenant_id, employee_id)
+ api_response = api_instance.get_credit_note_history(xero_tenant_id, credit_note_id)
print(api_response)
except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getEmployee: %s\n" % e)
+ print("Exception when calling AccountingApi->getCreditNoteHistory: %s\n" % e)
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 |
- | accounting.settings.read |
- Grant read-only access to organisation and account settings |
+ accounting.transactions.read |
+ Grant read-only access to invoices |
@@ -23935,11 +27048,11 @@ Parameters
Name |
Description |
- | EmployeeID* |
+ | CreditNoteID* |
-
+
@@ -23950,7 +27063,7 @@ Parameters
-Unique identifier for a Employee
+Unique identifier for a Credit Note
@@ -23972,7 +27085,7 @@ Parameters
-
+
@@ -23995,11 +27108,11 @@ Parameters
-
-
+
+
- getEmployees
- Retrieves employees used in Xero payrun
+ getCreditNotes
+ Retrieves any credit notes
@@ -24007,17 +27120,17 @@ getEmployees
- /Employees
+ /CreditNotes
Usage and SDK Samples
-
+
# configure api_client for use with xero-python sdk client
api_client = ApiClient(
Configuration(
@@ -24031,31 +27144,31 @@ Usage and SDK Samples
api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
-def accounting_get_employees():
+def accounting_get_credit_notes():
api_instance = AccountingApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00")
- where = 'Status=="ACTIVE"'
- order = 'LastName ASC'
+ where = 'Status=="DRAFT"'
+ order = 'CreditNoteNumber ASC'
try:
- api_response = api_instance.get_employees(xero_tenant_id, if_modified_since, where, order)
+ api_response = api_instance.get_credit_notes(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize)
print(api_response)
except AccountingBadRequestException as e:
- print("Exception when calling AccountingApi->getEmployees: %s\n" % e)
+ print("Exception when calling AccountingApi->getCreditNotes: %s\n" % e)
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 |
- | accounting.settings.read |
- Grant read-only access to organisation and account settings |
+ accounting.transactions.read |
+ Grant read-only access to invoices |
@@ -24070,7 +27183,7 @@ Parameters
-
+
@@ -24093,7 +27206,7 @@ Parameters
-
+
@@ -24123,7 +27236,211 @@ Parameters
-
+
+
+
+
+ String
+
+
+
+Filter by an any element
+
+
+
+
+ |
+ | | | |
+
+ | order |
+
+
+
+
+
+
+
+ String
+
+
+
+Order by an any element
+
+
+
+
+ |
+
+
+ | page |
+
+
+
+
+
+
+
+ Integer
+
+
+
+e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
+
+
+
+
+ |
+
+
+ | unitdp |
+
+
+
+
+
+
+
+ Integer
+
+
+
+e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
+
+
+
+
+ |
+
+
+ | pageSize |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Number of records to retrieve per page
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+ getCurrencies
+ Retrieves currencies for your Xero organisation
+
+
+
+
+
+
+
+ /Currencies
+
+ Usage and SDK Samples
+
+
+
+
+
+ # configure api_client for use with xero-python sdk client
+api_client = ApiClient(
+ Configuration(
+ debug=false,
+ oauth2_token=OAuth2Token(
+ client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET"
+ ),
+ ),
+ pool_threads=1,
+)
+
+api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
+
+def accounting_get_currencies():
+ api_instance = AccountingApi(api_client)
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID'
+ where = 'Code=="USD"'
+ order = 'Code ASC'
+
+ try:
+ api_response = api_instance.get_currencies(xero_tenant_id, where, order)
+ print(api_response)
+ except AccountingBadRequestException as e:
+ print("Exception when calling AccountingApi->getCurrencies: %s\n" % e)
+
+
+ Scopes
+
+
+
+ | accounting.settings |
+ Grant read-write access to organisation and account settings |
+
+
+
+ | accounting.settings.read |
+ Grant read-only access to organisation and account settings |
+
+
+
+ Parameters
+ Header parameters
+
+
+ | Name |
+ Description |
+
+ | xero-tenant-id* |
+
+
+
+
+
+
+
+ String
+
+
+
+Xero identifier for Tenant
+
+
+
+ Required
+
+
+
+ |
+
+
+
+ Query parameters
+
+
+ | Name |
+ Description |
+
+ | where |
+
+
+
+
@@ -24143,7 +27460,7 @@ Parameters
-
+
@@ -25630,12 +28947,13 @@ Usage and SDK Samples
invoice_numbers = ["INV-001", "INV-002"]
contact_ids = ["00000000-0000-0000-0000-000000000000"]
statuses = ["DRAFT", "SUBMITTED"]
- include_archived = 'true'
- created_by_my_app = 'false'
- summary_only = 'true'
+ include_archived = 'True'
+ created_by_my_app = 'False'
+ summary_only = 'True'
+ search_term = 'True'
try:
- api_response = api_instance.get_invoices(xero_tenant_id, if_modified_since, where, order, ids, invoice_numbers, contact_ids, statuses, page, include_archived, created_by_my_app, unitdp, summary_only)
+ api_response = api_instance.get_invoices(xero_tenant_id, if_modified_since, where, order, ids, invoice_numbers, contact_ids, statuses, page, include_archived, created_by_my_app, unitdp, summary_only, pageSize, search_term)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->getInvoices: %s\n" % e)
@@ -25939,6 +29257,46 @@ Parameters
|
+ |
+
+ | pageSize |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Number of records to retrieve per page
+
+
+
+
+ |
+
+
+ | searchTerm |
+
+
+
+
+
+
+
+ String
+
+
+
+Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.
+
+
+
+
+ |
@@ -26536,6 +29894,126 @@ Parameters
+
+
+
+
+
+
+
+
+
+ getJournalByNumber
+ Retrieves a specific journal using a unique journal number.
+
+
+
+
+
+
+
+ /Journals/{JournalNumber}
+
+ Usage and SDK Samples
+
+
+
+
+
+ # configure api_client for use with xero-python sdk client
+api_client = ApiClient(
+ Configuration(
+ debug=false,
+ oauth2_token=OAuth2Token(
+ client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET"
+ ),
+ ),
+ pool_threads=1,
+)
+
+api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
+
+def accounting_get_journal_by_number():
+ api_instance = AccountingApi(api_client)
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID'
+
+ try:
+ api_response = api_instance.get_journal_by_number(xero_tenant_id, journal_number)
+ print(api_response)
+ except AccountingBadRequestException as e:
+ print("Exception when calling AccountingApi->getJournalByNumber: %s\n" % e)
+
+
+ Scopes
+
+
+
+ | accounting.journals.read |
+ Grant read-only access to journals |
+
+
+
+ Parameters
+ Path parameters
+
+
+ | Name |
+ Description |
+
+ | JournalNumber* |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Number of a Journal
+
+
+
+ Required
+
+
+
+ |
+
+
+
+ Header parameters
+
+
+ | Name |
+ Description |
+
+ | xero-tenant-id* |
+
+
+
+
+
+
+
+ String
+
+
+
+Xero identifier for Tenant
+
+
+
+ Required
+
+
+
+ |
@@ -26582,7 +30060,7 @@ Usage and SDK Samples
api_instance = AccountingApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00")
- payments_only = 'true'
+ payments_only = 'True'
try:
api_response = api_instance.get_journals(xero_tenant_id, if_modified_since, offset, payments_only)
@@ -27731,7 +31209,7 @@ Usage and SDK Samples
order = 'Date ASC'
try:
- api_response = api_instance.get_manual_journals(xero_tenant_id, if_modified_since, where, order, page)
+ api_response = api_instance.get_manual_journals(xero_tenant_id, if_modified_since, where, order, page, pageSize)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->getManualJournals: %s\n" % e)
@@ -27869,6 +31347,26 @@ Parameters
|
+
+
+
| pageSize |
+
+
+
+
+
+
+
+ Integer
+
+
+
+Number of records to retrieve per page
+
+
+
+
+ |
@@ -28752,9 +32250,10 @@
Usage and SDK Samples
if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00")
where = 'Status=="AUTHORISED"'
order = 'Status ASC'
+ references = ["Ref1", "Ref2"]
try:
- api_response = api_instance.get_overpayments(xero_tenant_id, if_modified_since, where, order, page, unitdp)
+ api_response = api_instance.get_overpayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, references)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->getOverpayments: %s\n" % e)
@@ -28912,6 +32411,46 @@
Parameters