Under Integrations > Connected Integrations > Magento > App Configuration > Configure, fill out your credentials from your store in their respective sections:
Once your users have connected their Magento account, you can use the Paragon SDK to access the Magento API on behalf of connected users.See the Magento REST API documentation for their full API reference.Any Magento API endpoints can be accessed with the Paragon SDK as shown in this example.
Copy
Ask AI
// You can find your project ID in the Overview tab of any Integration// Authenticate the userparagon.authenticate(<ProjectId>, <UserToken>);// Fetch all productsparagon.request("magento", "/V1/products?searchCriteria=", { method: "GET"});// Create a customerparagon.request("magento", "/V1/customers", { method: "POST", body: { "customer": { "email": "[email protected]", "firstname": "John", "lastname": "Appleseed", } }});// Get order by IDparagon.request("magento", "/V1/orders/{id}", { method: "GET"});