Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for squarespace-commerce, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size squarespace_commerce-0.1.9-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size squarespace_commerce-0.1.9.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page