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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e207fe6905eb495b92605a6cf996b0b3beef98ff0a99aece920b534da6c82be |
|
MD5 | b3fa313a8d09f8c6645d3ad123b2bc36 |
|
BLAKE2b-256 | e4390bb3020af088cbcce9f5fb4497489e109ec2412741218c984b5fafe886ae |
Close
Hashes for squarespace_commerce-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18ce1733d60c37934b2f80ca229ede9dc04b2cd783aefa2dbec1dd7b86d31f39 |
|
MD5 | 0a5605af37c7c45784ff7e4bd83a1352 |
|
BLAKE2b-256 | 37610c9833985b71940f7de9af0c319c950dc156911bb79649f27dc7efb78150 |