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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de85e5057fcd64b9ff242fc113a1922f08ff0fdf6a737e333dfb6214b02b4c3 |
|
MD5 | 0c28237e3191e86fcfcbf6f724802d4e |
|
BLAKE2b-256 | 269194e16a95f80d21d6886e7d3e98f2af21f3ba060b1d419bfdbe42b28a3d61 |
Close
Hashes for squarespace_commerce-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 623448bbd5b3775d5e6a6542fa0a9f41cc8f4323ccb62cc00258a432856075db |
|
MD5 | 4bd67172d3e9c5aae861781e44b1dce7 |
|
BLAKE2b-256 | 230794f853b64a116ff6db5f82916741682b63456c4740c9ae873e04a2dcd952 |