REST interface
Complete API documentation for integrating with Shoporama
Please note
The documentation has moved to the new Swagger UI. This page is no longer maintained and may contain outdated information.
Endpoints
About the REST interface
Our REST interface was designed to make it possible for our customers to build their own integrations with inventory and accounting systems. It therefore only offers methods related to the features we support.
We use the HTTP protocol over SSL/TLS, and all data is sent and received in JSON format.
Authorization works at the store level, and each store can create the tokens it needs. By default, each token allows 1,000 calls per day. This limit can be raised if you contact us and explain why. To provide the token, add an Authorization header like the one below:
Authorization: Shoporama ade0fe8617b0825996baa9c8a9324ddb
Note that the authorization scheme above must be Shoporama.
Pagination
In calls that return lists, such as products or orders, there is a maximum number of results we return. The
result will therefore contain a paging element showing which part of the dataset you are looking at:
{
"paging": {
"offset": 30,
"limit": 10,
"count": 10,
"total": 1000
},
"products": [
[...]
]
}
To choose which part of the dataset you want to see, you can add the arguments limit=100 and offset=30 to
the URL you call.
Example API call
A complete example of how to fetch products that have been changed since January 1, 2020:
Request:
GET /REST/product?last_modified=2020-01-01T00:00:00&limit=100 HTTP/1.1
Host: www.shoporama.dk
Accept: */*
Authorization: Shoporama ade0fe8617b0825996baa9c8a9324ddb
User-Agent: Min Shoporama integration
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"paging": {
"offset": 30,
"limit": 10,
"count": 10,
"total": 1000
},
"products": [
[...]
]
}