Python SDK for accessing Sage Intacct APIs
Project description
Sage Intacct SDK
Python SDK to access Sage Intacct web services
Installation
This project requires Python 3+ and Requests library (pip install requests).
-
Download this project and use it (copy it in your project, etc).
-
Install it from pip.
$ pip install sageintacctsdk
Usage
To use this SDK you'll need these Sage Intacct credentials used for authentication: sender ID, sender password, user ID, company ID and user password.
This SDK is very easy to use.
- First you'll need to create a connection using the main class SageIntacctSDK.
from sageintacctsdk import SageIntacctSDK
connection = SageIntacctSDK(
sender_id='<YOUR SENDER ID>',
sender_password='<YOUR SENDER PASSWORD>',
user_id='<YOUR USER ID>',
company_id='<YOUR COMPANY ID>',
user_password='<YOUR USER PASSWORD>'
)
- After that you'll be able to access any of the 13 API classes: accounts, attachments, bills, charge_card_accounts, charge_card_transactions, contacts, departments, employees, expense_reports, expense_types, locations, projects, vendors.
"""
USAGE: <SageIntacctSDK INSTANCE>.<API_NAME>.<API_METHOD>(<PARAMETERS>)
"""
# Create a new Expense Report of 3800 USD, spent at 2019-28-11 and from employee with employee id E101
data = {
'employeeid': 'E101',
'datecreated': {
'year': 2019,
'month': 11,
'day': 28
},
'state': 'Approved',
'description': 'Team lunch',
'expenses': {
'expense': [
{
'expensetype': 'Food',
'amount': 3800,
'expensedate': {
'year': 2019,
'month': 11,
'day': 28
}
}
]
}
}
response = connection.employees.post(data)
# Use get_all methods to get all objects of certain types
response = connection.accounts.get_all()
# Get details of Employee with EMPLOYEEID E101
response = connection.employees.get(field='EMPLOYEEID', value='E101')
See more details about the usage into the wiki pages of this project.
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sageintacctsdk-1.3.0.tar.gz
(13.2 kB
view hashes)
Built Distribution
Close
Hashes for sageintacctsdk-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 855ca6f3b6fe46c7c1d8c1fed0a69bb540d88108400200152910c17f54753ba4 |
|
MD5 | 16bcc7ae391a765d00a550d8651650d2 |
|
BLAKE2b-256 | d53ee7610d7895588851fc2d89a203ea31ff2fdd83987f877c73b317c94ce66f |