Esta documentación tiene como objetivo proporcionar toda la información que necesita para trabajar con nuestra API.
To authenticate requests, include an Authorization header with the value "Bearer {TOKEN DE ACCESO}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
El token de acceso se obtiene generandolo desde el panel de administracion de SitioSimple.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/categories'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/categories'
payload = {
"image": "category.jpg",
"parent_id": 1,
"status": false,
"google_category": "google_category",
"meta_keywords": "meta, keywords",
"category_description": [
"qui"
]
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() The ID of the category.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/categories/esse'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() The ID of the category.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/categories/ea'
payload = {
"image": "category.jpg",
"parent_id": 1,
"status": false,
"google_category": "google_category",
"meta_keywords": "meta, keywords",
"category_description": [
"voluptas"
]
}
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json() The ID of the category.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/categories/et'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('DELETE', url, headers=headers, params=params)
response.json() The ID of the category.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/categories/quaerat/order'
payload = {
"sort_order": 1
}
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json() Filtra por nombre del cupon.
Parametros de ordenamiento.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/coupons'
params = {
'sort': 'date_added',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() string Color de texto.
string Color de texto.
Descuento.
Porcentaje.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/coupons'
payload = {
"name": "Cupon 1",
"code": "A311",
"discount": 10,
"percentage": 0,
"type": "F",
"aplication_coupon": "minima",
"amount_min": 1,
"amount_max": 3,
"logged": false,
"shipping": false,
"total": 3,
"date_start": "2025-06-19T13:02:48",
"date_end": "2025-06-19T13:02:48",
"uses_total": 16,
"uses_customer": 13,
"status": false,
"date_added": "2025-06-19T13:02:48"
}
params = {
'name': 'Cupon',
'code': '123',
'discount': '1',
'percentage': '10',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json() The ID of the coupon.
Id del coupons.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/coupons/possimus'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() The ID of the coupon.
Id del coupons.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/coupons/qui'
payload = {
"name": "Cupon 1",
"code": "A311",
"discount": 10,
"percentage": 0,
"type": "F",
"aplication_coupon": "qui",
"amount_min": 1,
"amount_max": 3,
"logged": false,
"shipping": false,
"total": 3,
"date_start": "2025-06-19T13:02:48",
"date_end": "2025-06-19T13:02:48",
"uses_total": 20,
"uses_customer": 6,
"status": false,
"date_added": "2025-06-19T13:02:48"
}
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json() The ID of the coupon.
Id del coupons.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/coupons/maxime'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('DELETE', url, headers=headers, params=params)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/currency'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() The currency.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/currency/nihil'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() The page number for pagination.
The number of items per page.
The field to sort by. Possible values: email, id, last-order.
Search term to filter by firstname, lastname or email.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/customers'
params = {
'page': '1',
'per_page': '20',
'sort': '-last-order',
'filter[search]': 'john',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/customers'
payload = {
"user_id": 1,
"dni": 12345678,
"firstname": "John",
"lastname": "Doe",
"email": "example@example.com",
"telephone": "123456789",
"restricted": true
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() The ID of the customer.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/customers/facilis'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() The ID of the customer.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/customers/tenetur'
payload = {
"user_id": 1,
"dni": 12345678,
"firstname": "John",
"lastname": "Doe",
"email": "example@example.com",
"telephone": "123456789",
"restricted": true
}
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json() The ID of the customer.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/customers/tempora'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('DELETE', url, headers=headers, params=params)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/customers/updateRestrictedMassive'
payload = {
"type": "allow",
"all": true,
"customer_ids": [
12
]
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() [Empty response]
The ID of the iser.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/customers/showByUserId/quisquam'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() The ID of the setDefault.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/currency/setDefault/maxime'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v1/products'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v1/products/variants'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v1/products/tags'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v1/categories'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/products/options'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/products/tags'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/categories'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/categories/validate'
payload = {
"category_slug": "nobis"
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/customers/4124/address'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() The address.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/customers/iste/address/2'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/customers/ut/address'
payload = {
"street": "25 de Mayo",
"city": "Parana",
"postcode": "1111"
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() The address.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/customers/vel/address/1'
payload = {
"street": "25 de Mayo",
"city": "Parana",
"postcode": "1111"
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json() The address.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/customers/ullam/address/2'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('DELETE', url, headers=headers)
response.json() The address.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/customers/quas/address/3/current'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('PATCH', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/countries'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/countries/706433'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/countries/61/zones'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() The ID of the option.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options/ut/values'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() The ID of the option.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options/excepturi/values'
payload = {
"sort_order": 1,
"language_id": 1,
"option_value_id": 1,
"option_description": [
"ut"
],
"option_id": 1
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() The ID of the option.
The ID of the value.
The ID of the resource.
The ID of the option.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options/earum/values/facere'
params = {
'id': '1',
'option_id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() The ID of the option.
The ID of the value.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options/inventore/values/doloribus'
payload = {
"sort_order": 1,
"language_id": 1,
"option_value_id": 1,
"option_description": [
"placeat"
],
"option_id": "\"select\""
}
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json() The ID of the option.
The ID of the value.
The ID of the resource.
The ID of the option.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options/debitis/values/eligendi'
params = {
'id': '1',
'option_id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('DELETE', url, headers=headers, params=params)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers)
response.json() import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options'
payload = {
"type": "\"select\"",
"sort_order": 1,
"language_id": 1,
"option_value_id": 1,
"option_description": [
"quasi"
]
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() The ID of the option.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options/dolor'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() The ID of the option.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options/ratione'
payload = {
"type": "\"select\"",
"sort_order": 1,
"language_id": 1,
"option_value_id": 1,
"option_description": [
"commodi"
]
}
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json() The ID of the option.
The ID of the resource.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/options/corrupti'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('DELETE', url, headers=headers, params=params)
response.json() Retorna una lista paginada de productos con la posibilidad de aplicar filtros, ordenamientos e incluir relaciones.
Filtro por si el producto requiere envío o no.
Filtro por si el producto está activo.
Filtro por texto en la descripción del producto.
Filtro por texto en la descripción de la categoría.
Ordenamiento por campo. Puede usarse con prefijo "-" para ordenar de forma descendente. Valores permitidos: min_price, max_price, created_at, description, -min_price, -max_price, -created_at, -description.
Relaciones a incluir. Valores permitidos: variants.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/products'
params = {
'filter[shipping]': '1',
'filter[is_active]': '1',
'filter[description]': 'remera',
'filter[category_description]': 'ropa',
'sort': '-max_price',
'include': 'variants',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json',
'ss-siteid': 'string required El ID del sitio.',
'ss-host': 'string required El host del sitio.'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() {
"data": [
{
"id": 1,
"name": "Remera Azul",
"min_price": 100,
"max_price": 200,
"variants_count": 3,
"productImages": [...],
"tags": [...],
"categories": [...]
}
],
"links": {...},
"meta": {...}
}
Retorna la información detallada de un producto específico, incluyendo sus variantes, imágenes, categorías, y etiquetas.
ID del producto a consultar.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/products/5'
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json',
'ss-siteid': 'string required El ID del sitio.',
'ss-host': 'string required El host del sitio.'
}
response = requests.request('GET', url, headers=headers)
response.json() {
"data": {
"id": 5,
"name": "Remera Azul",
"description": "Remera de algodón color azul",
"min_price": 100,
"max_price": 200,
"variants_count": 2,
"variants": [
{
"id": 10,
"price": 150,
"sku": "REMERA-AZUL-S",
"product_description": {
"name": "Remera Azul S",
"description": "Remera talle S"
}
}
],
"productImages": [...],
"tags": [...],
"categories": [
{
"id": 2,
"category_description": {
"name": "Ropa"
}
}
]
}
}
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/products'
payload = {
"sku": "CAMISETA-AZUL-M",
"quantity": 150,
"control_stock": 1,
"is_digital": 0,
"cost": 12.5,
"digital_product_url": "https:\/\/midominio.com\/downloads\/ebook123.pdf",
"video": "catalog\/products\/camiseta_azul.mp4",
"price": 39.99,
"weight": 1.25,
"weight_unit": "kg",
"length": 30.5,
"width": 20,
"height": 10,
"length_unit": "cm",
"sort_order": 5,
"is_active": 1,
"tags": [
14
],
"descriptions": [
{
"lang_id": "1",
"name": "Camiseta azul",
"description": "Camiseta de algodón color azul."
},
{
"lang_id": "2",
"name": "Blue T-shirt",
"description": "Cotton blue T-shirt."
}
],
"variants": [
{
"id": "28",
"sku": "CAMISETA-AZUL-M",
"quantity": 30,
"control_stock": 1,
"is_digital": 0,
"cost": 10.75,
"digital_product_url": null,
"video": "catalog\/products\/camiseta_demo.mp4",
"price": 29.99,
"weight": 0.25,
"weight_unit": "kg",
"length": 25,
"width": 18,
"height": 2,
"length_unit": "cm",
"sort_order": 2,
"is_active": 1,
"image": {
"image": "pexels-photo-32457994.webp",
"sort_order": 1
}
}
]
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json',
'ss-siteid': 'string required El ID del sitio.',
'ss-host': 'string required El host del sitio.'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json() The product.
Id del producto.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/products/7623'
payload = {
"sku": "CAMISETA-AZUL-M",
"quantity": 150,
"control_stock": 1,
"is_digital": 0,
"cost": 12.5,
"digital_product_url": "https:\/\/midominio.com\/downloads\/ebook123.pdf",
"video": "catalog\/products\/camiseta_azul.mp4",
"price": 39.99,
"weight": 1.25,
"weight_unit": "kg",
"length": 30.5,
"width": 20,
"height": 10,
"length_unit": "cm",
"sort_order": 5,
"is_active": 1,
"tags": [
4
],
"descriptions": [
{
"lang_id": "1",
"name": "Camiseta azul",
"description": "Camiseta de algodón color azul."
},
{
"lang_id": "2",
"name": "Blue T-shirt",
"description": "Cotton blue T-shirt."
}
],
"variants": [
{
"id": "28",
"sku": "CAMISETA-AZUL-M",
"quantity": 30,
"control_stock": 1,
"is_digital": 0,
"cost": 10.75,
"digital_product_url": null,
"video": "catalog\/products\/camiseta_demo.mp4",
"price": 29.99,
"weight": 0.25,
"weight_unit": "kg",
"length": 25,
"width": 18,
"height": 2,
"length_unit": "cm",
"sort_order": 2,
"is_active": 1,
"image": {
"image": "pexels-photo-32457994.webp",
"sort_order": 1
}
}
]
}
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json',
'ss-siteid': 'string required El ID del sitio.',
'ss-host': 'string required El host del sitio.'
}
response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json() .
The product.
Id del producto.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/products/7'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json',
'ss-siteid': 'string required El ID del sitio.',
'ss-host': 'string required El host del sitio.'
}
response = requests.request('DELETE', url, headers=headers, params=params)
response.json() Retorna una lista paginada de productos con la posibilidad de aplicar filtros, ordenamientos e incluir relaciones.
Filtro por si el producto requiere envío o no.
Filtro por si el producto está activo.
Filtro por texto en la descripción del producto.
Filtro por texto en la descripción de la categoría.
Ordenamiento por campo. Puede usarse con prefijo "-" para ordenar de forma descendente. Valores permitidos: min_price, max_price, created_at, description, -min_price, -max_price, -created_at, -description.
Relaciones a incluir. Valores permitidos: variants.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/products'
params = {
'filter[shipping]': '1',
'filter[is_active]': '1',
'filter[description]': 'remera',
'filter[category_description]': 'ropa',
'sort': '-max_price',
'include': 'variants',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json',
'ss-siteid': 'string required El ID del sitio.',
'ss-host': 'string required El host del sitio.'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() {
"data": [
{
"id": 1,
"name": "Remera Azul",
"min_price": 100,
"max_price": 200,
"variants_count": 3,
"productImages": [...],
"tags": [...],
"categories": [...]
}
],
"links": {...},
"meta": {...}
}
Retorna la información detallada de un producto específico, incluyendo sus variantes, imágenes, categorías, y etiquetas.
ID del producto a consultar.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/api/render/v2/products/show'
payload = {
"product_slug": "ipsam"
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json',
'ss-siteid': 'string required El ID del sitio.',
'ss-host': 'string required El host del sitio.'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json() {
"data": {
"id": 5,
"name": "Remera Azul",
"description": "Remera de algodón color azul",
"min_price": 100,
"max_price": 200,
"variants_count": 2,
"variants": [
{
"id": 10,
"price": 150,
"sku": "REMERA-AZUL-S",
"product_description": {
"name": "Remera Azul S",
"description": "Remera talle S"
}
}
],
"productImages": [...],
"tags": [...],
"categories": [
{
"id": 2,
"category_description": {
"name": "Ropa"
}
}
]
}
}
Filtra por nombre del tag.
Parametros de ordenamiento.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/tags'
params = {
'sort': 'date_added',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() string Color de texto.
string Color de texto.
Color de texto.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/tags'
payload = {
"sort_order": 1,
"text_color": "#000000",
"bg_color": "#FFFFFF",
"status": false,
"tag_description": [
"exercitationem"
]
}
params = {
'text_color': '#FFFFFF',
'bg_color': '#fff6f0',
'status': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json() The ID of the tag.
Id del tag.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/tags/aut'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('GET', url, headers=headers, params=params)
response.json() The ID of the tag.
Id del tag.
Orden de la etiqueta.
Color de texto.
Color de texto.
Color de texto.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/tags/doloremque'
payload = {
"sort_order": 1,
"text_color": "#000000",
"bg_color": "#FFFFFF",
"status": false,
"tag_description": [
"unde"
]
}
params = {
'id': '1',
'sort_order': '1',
'text_color': '#FFFFFF',
'bg_color': '#fff6f0',
'status': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json() The ID of the tag.
Id del tag.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/tags/rem'
params = {
'id': '1',
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('DELETE', url, headers=headers, params=params)
response.json() The ID of the tag.
import requests
import json
url = 'https://api.mdiarte.t2.newss.beer/api/v1/back/shop/v2/tags/sint/order'
payload = {
"sort_order": 1,
"order": 13
}
headers = {
'Authorization': 'Bearer {TOKEN DE ACCESO}',
'Content-Type': 'application/vnd.api+json',
'Accept': 'application/vnd.api+json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()