Python Jet.com API Client
pip install jet-python
from jet import Jet
jet = Jet(
user='0CXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
secret='NXXXXXXXXXXXXXXXXXXXXXXXXj+',
merchant_id='d4fe23456789876545678656787652',
)skus = jet.products.get_skus(page=1)order_ids = jet.orders.get_recent_order_ids(
status='ready'
)jet.orders.acknowledge(order_id)This involved a nested data structure. To make this easier this module provides a convenient higher level data structure called jet.Shipment
from jet import Shipment
shipment = Shipment(
shipment_id='CS1234',
tracking_number='1Z12324X12342435',
ship_from_zip_code='91789',
shipment_date=date.today(),
carrier='UPS',
shipment_method='Other'
)
for item in items:
shipment.add_item(
sku='iphone-xs',
quantity=2,
)
jet.orders.ship(order_id, [shipment])- TODO