Skip to content

caseydierking/squarespace-commerce-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Squarespace_Commerce Python Module

The Squarespace_Commerce module attempts to provide easy access to Squarespace's Commerce API.

Usage

#Import the module
from squarespace_commerce import Squarespace
#Create a squarespace class.
order = Squarespace('APIKEY')

#Optional Parameters include:
#APIVersion defaults to 1.0
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

About

Pythonic access to Squarespace Commerce API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages