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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a90331cefd37c76052701d9d2c66e47dae3c5d258f6ff5d625273cff35be7680 |
|
MD5 | e867631bba336be36c0dd18281e696f9 |
|
BLAKE2b-256 | 5517e407a2cd6434c17a7d62de472ef9cb1a3c2a7ab4f095037d81dab6f9a16e |
Close
Hashes for squarespace_commerce-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca8fb657379f0a8372d7229cc8feef75e11e7488fa474ced20c4c83902ec0834 |
|
MD5 | b0e9b7bd51ce284c51d5e08cbab90b8d |
|
BLAKE2b-256 | eb93e628053038ae5df7fd9d12c847457d4569f8bd87732bfb562c12a7aecb8e |