REST API
Complete REST interface for all resources
Template API
Smarty classes and methods
OAuth 2.0
Secure app integration
Webhooks
Real-time event notifications
Get started quickly
1 Create an API key
Log in to your online store admin panel and go to Integrations → API Access. Here, you can create a new API key and select its permissions: All, Read-only, or Write-only.
Only users with Full Access or the Developer role can enable API access. When a Developer creates a key, it is linked to that user and has no more permissions than the role itself. The key stops working if the user is removed from the online store, and the Developer can only view and edit their own keys. A call outside the role’s scope returns a 403 error with the message “insufficient_role.” For example, if the integration needs to retrieve orders, the key must be created by a user with Full Access. Learn more about roles and permissions.
2 Make your first API call
Test your connection with a simple GET request to the product endpoint:
curl -X GET "https://www.shoporama.dk/REST/product?limit=1" \
-H "Authorization: 5d41402abc4b2a76b9719d911017c592" \
-H "Accept: application/json"
3 Explore the API
Now you're ready to explore all the possibilities in our API:
Code examples
PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "/api/v1/products");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer 5d41402abc4b2a76b9719d911017c592",
"Accept: application/json"
]);
$response = curl_exec($ch);
$products = json_decode($response, true);
curl_close($ch);
?>
JavaScript
const response = await fetch('/api/v1/products', {
method: 'GET',
headers: {
'Authorization': 'Bearer 5d41402abc4b2a76b9719d911017c592',
'Accept': 'application/json'
}
});
const products = await response.json();
console.log(products);
Python
import requests
headers = {
'Authorization': 'Bearer 5d41402abc4b2a76b9719d911017c592',
'Accept': 'application/json'
}
response = requests.get(
'/api/v1/products',
headers=headers
)
products = response.json()
print(products)
C# / .NET
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Add("Authorization", "Bearer 5d41402abc4b2a76b9719d911017c592");
client.DefaultRequestHeaders.Add("Accept", "application/json");
var response = await client.GetAsync("/api/v1/products");
var json = await response.Content.ReadAsStringAsync();
var products = JsonSerializer.Deserialize<List<Product>>(json);
}