Magento
Connect to your users' Magento accounts
You'll need the following information to set up your Magento App with Paragon Connect:
- Magento Store Domain
- Username
- Password
Under Integrations > Connected Integrations > {YOUR_APP} > Settings, fill out your credentials from your store in their respective sections:
- Magento Store Domain
- Username
- Password
Once your users have connected their Magento account, you can use the Paragon SDK to access the Magento API on behalf of connected users.
Any Magento API endpoints can be accessed with the Paragon SDK as shown in this example.
1
// You can find your project ID in the Overview tab of any Integration
2
3
// Authenticate the user
4
paragon.authenticate(<ProjectId>, <UserToken>);
5
6
// Fetch all products
7
paragon.request("magento", "/V1/products?searchCriteria=", {
8
method: "GET"
9
});
10
11
// Create a customer
12
paragon.request("magento", "/V1/customers", {
13
method: "POST",
14
body: {
15
"customer": {
16
"email": "[email protected]",
17
"firstname": "John",
18
"lastname": "Appleseed",
19
}
20
}
21
});
22
23
// Get order by ID
24
paragon.request("magento", "/V1/orders/{id}", {
25
method: "GET"
26
});
27
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
When creating or updating records in Magento, you can reference data from previous steps by typing
{{
to invoke the variable menu.Last modified 9mo ago