Pythonic access to the Squarespace Commerce API
Project description
Squarespace_Commerce Python Module
The Squarespace_Commerce module attempts to provide easy access to Squarespace's Commerce API.
Usage
#Instantiate the squarespace class to get access to your store:
#Version defaults to 1.5
order = Squarespace('APIKEY')
#Optional Parameters include:
order = Squarespace('APIKEY','APIVERSION','APIBASEURL')
Orders API
#Get the first page of orders, returns 50:
order.get_orders()
#Optional Parameters include:
order.get_orders(cursor='{Token}',modified_after='{ISO 8601 Date}'',modified_before='{ISO 8601 Date}',fulfillment_status='{PENDING | FULFILLED | CANCELLED}')
#Get a specific order
order.get_order('order_id')
#Fulfill a specific order
order.fulfill_order('order_id')
#Optional Parameters include:
order.fulfill_order('order_id', send_notification={True | FALSE}, ship_date={ISO 8601 Date}, tracking_number='',
carrier_name='', service='', tracking_url='{valid_url}'):
Transactions API
#WIP
Inventory API
#WIP
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
Built Distribution
Close
Hashes for squarespace_commerce-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771f591a4f2070c00a23815038aeb33018294c728c9d1df0ae56247aad3331f6 |
|
MD5 | 24d70b3da28d646ee88a95b64ffa662f |
|
BLAKE2b-256 | 0977daa1ccff7275f96bc360afc1156ff47c4316c993f9553b71f5508192511b |
Close
Hashes for squarespace_commerce-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cedb7c82ec9d1c8838f73c63e25d736c1832489a4a2e0e0380a67a6e62c820d |
|
MD5 | 71351415400e2a24a8bdd96a7e9506e0 |
|
BLAKE2b-256 | a6f287f176d6a327e87b752cb01b6c5a378da70f7487ce36aca0a597fd2c1fa0 |