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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb2874c5caa1285fba1606c49bd8fcd35a3555ffcdefdf9577a46317887baa95 |
|
MD5 | 4b9920f4cf1954f04edd5c1e55a810c5 |
|
BLAKE2b-256 | be8ee079e7188cf0193f64621fd6932fe1e495651da0d1f645fb151ba65472c7 |
Close
Hashes for squarespace_commerce-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dcaccd382919aa56acf53e742542c7fbb72019ea44f9077d175ea47f00cd0f5 |
|
MD5 | 10bf73d871ce0a8430c91e2275c78a46 |
|
BLAKE2b-256 | 1a862ac32f91d9c667243cc0053fc46d86c5b7ea14e6d42cca7dccde280abea8 |