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.

Source Distribution

squarespace_commerce-0.1.9.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

squarespace_commerce-0.1.9-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file squarespace_commerce-0.1.9.tar.gz.

File metadata

  • Download URL: squarespace_commerce-0.1.9.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.3 Darwin/19.2.0

File hashes

Hashes for squarespace_commerce-0.1.9.tar.gz
Algorithm Hash digest
SHA256 cf9ac8a37f7227b83c1fcf1f393b2afa3a923585e381a13ffeac9d26e5a90da3
MD5 3c8c045fbd47eca1122ebb1cea8039be
BLAKE2b-256 ca1a15799c4fb20809f9da939c6269ccbd4b248c31eadde9847ff5f393ffe32f

See more details on using hashes here.

File details

Details for the file squarespace_commerce-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for squarespace_commerce-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a9f6a3d5bbaceae927616fef554786dfe5048a4376e0791df1bbc053cdbf6145
MD5 570d311ce9cbc08519b7ddc239bc99c0
BLAKE2b-256 640a5c6fcb992fcfac7822352284e48bf0b78efb59f148a6471e2560a5582465

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page