Overview
The cart-transform function in the Shoplazza Function API allows developers to customize cart price calculations dynamically. Once a cart-transform function is bound to a cart price adjustment point, Shoplazza automatically executes the associated function during the cart and checkout process. This allows developers to implement custom pricing strategies, such as discounts, bundle pricing, or conditional price modifications.
This API provides developers with the ability to:
• Bind a function to the cart price adjustment point.
• Update the function to modify pricing logic.
• Query the current function settings for debugging or monitoring.
• Remove the function when no longer needed.
Authentication
Before calling the Shoplazza Cart Transform API, you need to complete OAuth 2.0 authentication. to obtain an Access Token. Follow the steps below to create an app and configure credentials:
Authentication Steps
1. Log in to your Shoplazza Partner Account and navigate to the Shoplazza Partner
2. In the left navigation bar, select “Apps”, then click the “Create App” button.
3. Enter the App Name and click Create. The system will automatically generate a Client ID and Client Secret, which can be found on the app settings page.
Obtain or Refresh Access Token
Please view Get Access_token by Code to Obtain or Refresh Access Token.
Header Structure
Term | Description |
---|---|
Access Token | A temporary credential used to authenticate API requests. Follow steps in Get Access_token by Code to Obtain or Refresh Access Token. |
App Client ID | Client ID |