OAuth Scopes

API OAuth Scopes

Applications integrating with the X-series API must request the appropriate OAuth scopes during the retailer authorization step. Each scope grants permission to read and/or write a domain (or a portion of a domain) such as products, sales, customers, price books, or consignments. Every endpoint in the reference indicates its required scope(s). The scope set you request is presented to the retailer admin for review during authorization.

Selecting Scopes For Your Application

  • Review all endpoints used by your application.
  • Check the required scope(s) for each endpoint; combine them and remove duplicates to form your scope list.

Once identified, request these scopes by adding a space-delimited scope parameter to the authorization request (see Authorization reference). Example:

&scope=products:read sales:read customers:read

Minimize the scopes to only those needed by your application to reduce the chance a retailer admin declines connecting your app for requesting unnecessary access.

It is strongly recommended to test your application end-to-end using tokens limited to the scopes you plan to request, to confirm it functions correctly with only those permissions.

Example

Suppose your app needs to:

  1. List products (GET /api/2.0/products)
  2. Fetch a single sale (GET /api/2.0/sales/{id})
  3. Create a supplier purchase order (POST /api/2.0/consignments with type SUPPLIER)
EndpointPurposeRequired Scope(s)
GET /api/2.0/productsList productsproducts:read
GET /api/2.0/sales/{id}Retrieve sale detailssales:read
POST /api/2.0/consignments (SUPPLIER)Create supplier orderconsignments:write:stock_order

Combined scope set (duplicates removed):

products:read sales:read consignments:write:stock_order

Authorization request (space-delimited scopes):

https://secure.retail.lightspeed.app/connect?response_type=code&client_id={client_id}&redirect_uri={redirect_uri}&state={state}&scope=products:read%20sales:read%20consignments:write:stock_order

Available Scopes

ScopeDescription
audit:readRead audit and security events
billing:partner_subscription:readRead Billing Partner Subscription.
billing:partner_subscription:writeWrite Billing Partner Subscription.
business_rules:readRead business rules.
business_rules:writeCreate and delete business rules.
channels:readRead e-commerce channel information.
consignments:readRead in-progress inventory counts and historical stock consignments.
consignments:write:inventory_countPerform Inventory Counts.
consignments:write:stock_orderProcess stock orders and stock returns.
consignments:write:stock_transferCreate, send and receive stock transfers between outlets.
customers:readRead customers and customer groups.
customers:writeCreate, update and delete customers and customer groups.
custom_fields:readRead custom fields.
custom_fields:writeCreate, update and delete custom fields.
fulfillments:readRead sale order fulfillments
fulfillments:writeCreate and update sale order fulfillments.
gift_cards:readRead gift cards and gift card transactions.
gift_cards:write:issueIssue a gift card to a customer.
gift_cards:write:redeemRedeem or reload an amount against a customers gift card.
inventory:readRead current and historical product inventory levels.
outlets:readRead outlets.
payments:readRead Payments.
payment_types:readRead payment types, excluding internal payment types.
products:readRead products, product types, product images, brands and tags, excluding product costs.
products:read:price_booksRead product price books.
products:writeCreate and update products (excluding product costs), delete products, upload product images and create product types.
products:write:price_booksWrite Products Price Books.
promotions:readRead promotions, get products a specific promotion can be used on and find the best promotion for a sale and determine the discount.
promotions:writeCreate, update and archive any promotion.
register:closeClose a register and reconcile payments.
register:openOpen a register to create sales and payments.
registers:readRead registers.
remote_rules:readRead remote rules.
remote_rules:writeCreate and delete remote rules.
retailer:readRead all your account configuration. E.g. your loyalty ratio, timezone, country and currency.
sales:readRead all sales and payments in your account.
sales:writeCreate sales and payments, and adjust, void or return sales.
serial_numbers:readRead serial numbers.
serial_numbers:writeAdd and delete serial numbers.
services:readRead services
services:writeCreate, edit services.
store_credits:readRead store credit transactions, overall and for customers.
store_credits:write:issueIssue store credits to a customer for a return.
suppliers:readRead suppliers.
suppliers:writeCreate, update and delete suppliers.
taxes:readIf tax inclusive: Read tax rates and tax rules. If tax exclusive: Read tax rates, tax rules and tax groups.
taxes:writeCreate, update and delete taxes.
users:readRead user information (except user passwords).
users:writeCreate, update and delete users and customise groups.
webhooksManage webhooks created by the application.