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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42df23a3f69c44a5d6ee4cd36ff18cbdf83d922be71598ffa33cea05da526336 |
|
MD5 | b7305542072fbdd5f19ace01dbe63cb5 |
|
BLAKE2b-256 | 36914d858a5aa3ca1e9ba4176c432aaec8f0515a802e46a2b6bd4a88b25a8596 |
Close
Hashes for squarespace_commerce-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d9aa115dbc61f28f5121e525fc043dab8433eb066a55a8288d2623faa0570d8 |
|
MD5 | 43f6aca4fac057d6ba011d657ce4ebb9 |
|
BLAKE2b-256 | 8b90d19a5f32c7245b9da8a1887fd01e8b4b6206b5787859b1f408219649e451 |