Magento 2 API: Add Products to Cart & Checkout Place Order
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
6M ago
In this article, we will look into how we can add products to the cart and complete the checkout process by placing an order using Magento API. The APIs used to create a cart, add products to the cart, place an order, etc. require customer token authentication. Create Shopping Cart We create an empty cart ... Read more The post Magento 2 API: Add Products to Cart & Checkout Place Order appeared first on Mukesh Chapagain Blog. Related posts: Magento 2 API: Get Products Magento 2 API: Create New Customer Magento 2 API: Get Customer Token Magento 2 API: Get Stores Information Magento 2 API ..read more
Visit website
Magento 2 API: Create New Customer
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
7M ago
In this article, we will be looking into how we can create a new customer in Magento 2 using its API. We will be passing the admin bearer token to authenticate the APIs. Create New Customer API Doc: https://adobe-commerce.redoc.ly/2.4.5-admin/tag/customers Endpoint: GET <host>/rest/V1/customers Authentication Bearer Token: <admin-token> Payload: { "customer": { "firstname": "Test", "lastname": "Example", "email": ... Read more The post Magento 2 API: Create New Customer appeared first on Mukesh Chapagain Blog. Related posts: Magento 2 API: Get Customer Token Magento 2 API: Get Adm ..read more
Visit website
Magento 2 API: Get Categories
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
7M ago
In this article, we will be looking into how we can get the Categories in Magento 2 using its API. Get All Categories Get Category by category id Search Categories Anonymouse APIs Restriction The REST endpoints to get the stores’ information falls under the anonymous APIs category. However, in the recent Magento version, those API ... Read more The post Magento 2 API: Get Categories appeared first on Mukesh Chapagain Blog. Related posts: Magento 2 API: Get Products Magento 2 API: Get CMS Pages & CMS Blocks Magento 2 API: Get Customer Token Magento 2 API: Get Stores Information Magento 2 A ..read more
Visit website
Magento 2 API: Get Products
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
8M ago
In this article, we will be looking into how we can get the Products in Magento 2 using its API. Get Product by SKU Get Multiple Products using SearchCriteria Get Single Product by product ID using SearchCriteria Anonymouse APIs Restriction The REST endpoints to get the stores’ information falls under the anonymous APIs category. However, ... Read more The post Magento 2 API: Get Products appeared first on Mukesh Chapagain Blog. Related posts: Magento 2 API: Get CMS Pages & CMS Blocks Magento 2 API: Get Stores Information Magento 2 API: Get Customer Token Magento 2 API: Get Admin Token In ..read more
Visit website
Magento 2 API: Get CMS Pages & CMS Blocks
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
8M ago
In this article, we will be looking into how we can get the CMS Pages & CMS Blocks in Magento 2 using its API. Get CMS Page by page id Get CMS Block by block id Get multiple CMS Pages using SearchCriteria Get multiple CMS Blocks using SearchCriteria Anonymouse APIs Restriction The REST endpoints to ... Read more The post Magento 2 API: Get CMS Pages & CMS Blocks appeared first on Mukesh Chapagain Blog. Related posts: Magento 2 API: Get Customer Token Magento 2 API: Get Stores Information Magento 2 API: Get Admin Token Magento 2: Add/Update CMS Page via Install/Upgrade Script Programma ..read more
Visit website
Magento 2 API: Get Stores Information
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
8M ago
In this article, we will be looking into how we can get the store information in Magento 2 using its API. We will be fetching websites, stores, and store views. We will also be fetching the store configs that include the locale, timezone, currency code, and store URLs. Anonymouse APIs Restriction The REST endpoints to ... Read more The post Magento 2 API: Get Stores Information appeared first on Mukesh Chapagain Blog. Related posts: Magento 2 API: Get Customer Token Magento 2 API: Get Admin Token Magento 2: Setup Multiple Stores and Websites Introduction to Magento 2 API Magento: Get store in ..read more
Visit website
Magento 2 API: Get Customer Token
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
9M ago
In this article, we will be looking into how we can get the customer token in Magento 2. Customer Users in Magento have access to resources with anonymous or self permission. To access the self resources, the API call should be authorized. In the Token-based Authorization method, the customer token is necessary to authorize the ... Read more The post Magento 2 API: Get Customer Token appeared first on Mukesh Chapagain Blog. Related posts: Magento 2 API: Get Admin Token Introduction to Magento 2 API Magento 2: Create Customer Programmatically Magento: Redirect Customer to Previous Page After L ..read more
Visit website
Magento 2 API: Get Admin Token
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
9M ago
To authenticate the API, we can pass the admin token, customer token, or integration token along with the API request in Magento 2. This type of authentication process is called Token-based authentication. Introduction to Magento 2 API and different types of API authentication mechanism used in Magento 2 are present in my previous article. In ... Read more The post Magento 2 API: Get Admin Token appeared first on Mukesh Chapagain Blog. Related posts: Introduction to Magento 2 API Magento2: Reset Admin 2FA (Two-Factor Authentication) PHP: Get Latitude/Longitude using Google Maps API Magento 2 ..read more
Visit website
Introduction to Magento 2 API
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
9M ago
This article provides an introduction to API in Magento 2. Introduction to API API stands for Application Programming Interface. Application = any software with a distinct function Interface = a contract of service between two applications The applications communicate with each other via requests and responses. Client = the application sending the request Client application ... Read more The post Introduction to Magento 2 API appeared first on Mukesh Chapagain Blog. Related posts: Introduction to Docker and its Tools & Terminologies Python: Get Twitter Tweets using Tweepy Library Magento ..read more
Visit website
Magento 2: Clean Fastly or Varnish Cache by Cache Tag Programmatically
Mukesh Chapagain Blog - Magento
by Mukesh Chapagain
1y ago
This article shows how you can clean Fastly Cache or Varnish Cache by cache tags in Magento. Fastly has an observer that listens to the event clean_cache_by_tags. vendor/fastly/magento2/etc/events.xml (github) <event name="clean_cache_by_tags"> <observer name="flush_fastly_cdn" instance="Fastly\Cdn\Observer\InvalidateVarnishObserver"/> </event> The \Fastly\Cdn\Observer\InvalidateVarnishObserver class further calls the \Fastly\Cdn\Model\PurgeCache::sendPurgeRequest($pattern) method which finally cleans the Fastly Cache utilizing \Fastly\Cdn\Model\Api. Magento’s Cache_Invalidat ..read more
Visit website

Follow Mukesh Chapagain Blog - Magento on FeedSpot

Continue with Google
Continue with Apple
OR