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.
read_translation
Permission point description: Access translation
Related interface: translatableResources
Apply to private application: true
read_product_sizechart
Permission point description: Read Product Sizechart
Related interface: Query product size data in batch
Apply to private application: true
write_discounts
Permission point description: Modify automatic discounts and discount codes
Related interface: discountAutomaticDoniUpdate
Apply to private application: true