Hero Image

Integrating APIs into Magento

Written By Thomas King
Date 4 July 2019

We launched the Magento 2 site for our clients AirbagTeam earlier this month and have been working on a custom integration module for checking vehicle registrations.

We scoured the web for a few weeks to try and find a suitable integration to link a vehicle registration plate checker to match parts inside Magento to no avail. We spoke with the DVLA and many other API providers but couldn’t find anyone that had a Magento integration available, so we decided to build one!

To start with we sourced a data provider who had a detailed API connection with many custom strings. After searching and testing we found UK Vehicle Data had the most suitable API for our custom module.

Once we got the integration to the API working, this allowed customers to search their registration number on Magento and it would return key information about their car. This was the easy bit! We then needed to link this car information to the category of products, and in this case that’s more than 21,000 products.

We tried and tested numerous ways to do this, testing years, models and VIN numbers, however this was trickier than we thought as various parts can fit various cars from a range of years. Back to the drawing board to re-think how to go about it. We noticed that UK Vehicle Data have a database of codes called UVIDs which are unique to a set amount of vehicles on the road. This worked for us, so the next step in the development continued.

We created a custom attribute set of UVIDs which could be assigned to products. This was now a reverse process because a product could have up to 300+ UVIDs assigned as one part could potentially fit 300+ types of models. We created an attribute import and export module to make it easier to upload this huge bank of UVIDs (120,000+ to begin with!). Once this was imported we then created a formula to add these to the product import so multiple UVIDs were added to the product entity ID attributes table.

This set the backend of Magento up perfectly to allow this new assignment. The final thing was to create a process after the customer enters their registration to pull the UVID from the API, create a custom search through our module and then present all of the products associated with that unique UVID ID.

This took a while for us to get working fully but once we did it was great. We have spoke to UK Vehicle Data about advancing on this development and packaging it up to be available on the Magento Marketplace in the very near future.

Table of contents

Table of contents - Click to travel to a section

Newsletter

Sign Up to our newsletter to receive new insights, company updates and blog posts

Related Blogs

AIeCommerceEventFeatured

Why I Created Future Ready Digital North and Why Every Ambitious Business Should Be There

How do businesses stay visible, trusted and commercially successful as AI changes the way people discover products and services? Search is changing. Marketing is changing. Commerce is changing. The companies that adapt early won’t just survive, they’ll become the brands AI recommends, customers trust and competitors struggle to catch. That’s exactly why we created Future

24th July 2026
AIeCommerceMarketing

AI Search, Apple Pay & Product Discovery: How the Buying Journey is Changing

TL;DR The way people buy online is changing rapidly. Customers are no longer just browsing websites or searching Google. Increasingly, they are discovering products through AI platforms & other data feeds such as social media. Recent commerce data highlights several key shifts: Businesses saw 5x more orders during Black Friday and Cyber Monday, with the

9th March 2026
eCommerceUXWeb

Top 5 Magento / Adobe Commerce Performance Monitoring Tools (2026)

This list reflects the actual tools serious Adobe Commerce and Magento businesses use in production, with accurate pricing, Magento-specific advantages, and realistic deployment considerations. 1. New Relic. Best Overall Full-Stack Magento Observability Focus: Full-stack observability (backend, frontend, infrastructure, cron, queues) 2026 Pricing Free tier: 100 GB data ingest/month Standard Data Ingest: ~$0.30/GB (£0.24) Data Plus

26th February 2026