AccessScope resources are used by merchants to authorize apps.
Each permission point is associated with a series of Open APIs. Through these Open APIs, apps can access or edit store data.
This document lists the currently available AccessScope permission points on the platform and their associated interfaces.
You should determine which permissions to apply from the merchant when installing or updating the app based on your actual needs.
For example, if an app needs to query the merchant’s order information during use, it needs to request the read_orders permission from the merchant during installation.
After merchant authorization, SHOPLINE will return an access token containing AccessScope information. When the app makes a request with the access token, only interfaces that meet the scope of the AccessScope can be successfully returned.
AccessScope
It should be noted that certain AccessScopes require the activation of specific business functions before they can be used. Requesting access to these scopes before activating the corresponding business functions may result in the following error: 'the app has no qualification'. AccessScopes requiring the activation of specific business functions include:
write_payment_gateways: Requires activation of payment app business.read_subscription_contracts&write_subscription_contracts: Requires activation of subscription e-commerce business.
write_price_rules
Permission point description: Modify conditional discounts
Related interface: Delete existing price rule、Update the price rule of a code discount
Apply to private application: true
write_product_sizechart
Permission point description: Write product sizechart
Related interface: Batch delete sizechart、Create a size chart、Update a size chart
Apply to private application: true
read_shop_policy
Permission point description: Access shop policies
Related interface: Query policy page information
Apply to private application: true
write_products
Permission point description: Modify products, variants, and collections
Related interface: Delete a manual collection 、Delete a smart collection、Delete a product、Create a product collection relationship、Delete a product collection relationship、Delete a variant、Resources feedback、Create a variant、Update a variant、Delete a product image、Update Product Sorting in Smart Collections、Create a company location catalog、Update a company location catalog、Delete catalog、Separate pricing for catalog variants、Add catalog products、Remove catalog products、Add products to a market in bulk、Remove products from a market in bulk、Remove company locations、Create a taxonomy collection node、Delete a taxonomy collection node、Update a taxonomy collection node
Apply to private application: true
read_inventory
Permission point description: Access inventory across multiple locations
Related interface: Get inventory quantities、Get an inventory item、Get inventory items
Apply to private application: true
write_assigned_fulfillment_orders
Permission point description: Manage assigned fulfillment orders
Related interface: Set up a fulfillment order deadline、Update inventory location for fulfillment order、Re-book the date of the sale、Fulfillment order release onhold status、Performance appointment marker onhold、Cancel fulfillment、Fulfillment app rejects shipment cancellation request、Fulfillment app accepts cancellation request for shipment、Fulfillment app rejects shipment request、Fulfillment app accepts request to ship、Ship according to fulfillment order request、Delete fulfillment delivery logistics event