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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c48a0ee1cf48532fc682ae8ef7d47bf35edbc106b1d3550fb90dc2ef757a96b |
|
MD5 | dd41a3b890f1523bd03d7ee876008c73 |
|
BLAKE2b-256 | 85a0ed83603293e46fcd4ec45d76bbe7196e4a29e82c40cf35b9f8fc590daca9 |
Close
Hashes for squarespace_commerce-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b5c80276950abb616b42be6a8911d64bfabf0c27c706b1357be9b3dae2c6a27 |
|
MD5 | 1a5b5545994982ba48dd883bde05e210 |
|
BLAKE2b-256 | b23ab7f7ff4f27629b4c0cd26a8b29ec0da0900927da63832f9df7b358c687d0 |