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"});
Once your Magento account is connected, you can add steps to perform the following actions:
Create Customer
Update Customer
Get Customer by ID
Search Customers
Delete Customer
Create Order
Update Order
Get Order by ID
Search Orders
Create Product
Update Product
Get Product by SKU
Search Products
Delete Product
You can also use the Magento Request step to access any of Magento’s API endpoints without the authentication piece.When creating or updating records in Magento, you can reference data from previous steps by typing {{ to invoke the variable menu.