status_code = 204 # Print the revised product. Purchase Orders Purchase orders are the main way to replenish stock in Lightspeed Retail, but they do work differently than in OnSite. post ( logout_url ) assert logout_response. If you need to store both a shipping and billing address for a given vendor, you can create multiple copies of that vendor, for example, Vendor (shipping) and Vendor (billing). request ( 'UNLOCK', web_category_url ) assert unlock_response. status_code = 201 # Unlock the order after the change is complete. post ( web_category_url + 'products/', data = web_category_xml ) assert post_response. status_code = 200 # Send the request to update the order. request ( 'LOCK', web_category_url ) assert lock_response. Add the product code, description, family, and class. To create a product In OnSite Store Master go to File > New Product, or on the toolbar right-click Product > New. verify = False # Lock the order before making the change. Do not delete products in Lightspeed OnSite after they have been uploaded to your Web Store. auth = ( ONSITE_USERNAME, ONSITE_PASSWORD ) session. ONSITE_HOST = 'localhost' ONSITE_PORT = 9630 ONSITE_USERNAME = 'lightspeed' ONSITE_PASSWORD = 'admin' APP_ID = '' APP_VERSION = '1.0' APP_PRIVATE_ID = '12345678-90ab-cdef-1234-567890abcdef' web_categories_url = ' %s : %d /api/setup/web_categories/?count=10&offset=0' % ( ONSITE_HOST, ONSITE_PORT ) logout_url = ' %s : %d /api/sessions/current/logout/' % ( ONSITE_HOST, ONSITE_PORT ) # Setup a session for the http request. """ import requests from xml.dom import minidom # Customize these to your install. For OnSite, visit Creating a color-size matrix and Managing product visibility in eCom. For more information: For Retail, visit Creating matrices and Publishing items in eCom. In both, variants are created when you create a matrix and you publish them to eCom. Understanding purchasing in OnSite Creating a PO from a text file Returning Inventory to a Supplier Reorder Points Users. """ List all web categories using the OnSite API. If this software is made by Lightspeed, it's called Lightspeed Retail or OnSite.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |