Listar premios
curl --request GET \
--url https://api.tiendadepuntos.com/external/products \
--header 'x-api-key: <api-key>'import requests
url = "https://api.tiendadepuntos.com/external/products"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tiendadepuntos.com/external/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tiendadepuntos.com/external/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tiendadepuntos.com/external/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tiendadepuntos.com/external/products")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tiendadepuntos.com/external/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 771,
"name": "Café gratis",
"description": "Un café de especialidad a elección.",
"shortDescription": "Café a elección",
"image": "https://tdp-products.s3.amazonaws.com/771.png",
"isEnabled": true,
"stock": {
"controlled": true,
"available": 12
},
"offers": [
{
"productOfferId": 4412,
"points": 500,
"levelId": 3,
"levelName": "Nivel 2"
}
],
"categories": [
{
"id": 7,
"name": "Cafetería"
}
],
"createdAt": "2026-02-14T12:30:00.000Z",
"updatedAt": "2026-06-01T09:15:00.000Z",
"maxPurchases": null
}
],
"meta": {
"totalItems": 128,
"itemCount": 10,
"itemsPerPage": 10,
"totalPages": 13,
"currentPage": 1,
"from": 1,
"to": 10
},
"links": {
"first": "external/products?page=1&limit=10",
"previous": null,
"next": "external/products?page=2&limit=10",
"last": "external/products?page=13&limit=10",
"path": "external/products",
"firstPageUrl": "external/products?page=1&limit=10",
"lastPageUrl": "external/products?page=13&limit=10"
}
}{
"statusCode": 400,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Error de validación",
"errors": [
{}
],
"data": {}
}{
"statusCode": 401,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Api key is invalid",
"errors": [
{}
],
"data": {}
}{
"statusCode": 404,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Client not found",
"errors": [
{}
],
"data": {}
}Premios
Listar premios
Devuelve el catálogo de premios del comercio, paginado.
Cada premio trae un array offers con el precio en puntos según el nivel del cliente. El productOfferId de la oferta que corresponda es lo que después mandás a POST /external/exchange/product.
Si enviás el header x-branch-id, se excluyen los premios que están limitados a otras sucursales.
Atención: este endpoint devuelve { data, meta, links } en la raíz, sin el envelope { success, status, message, data }.
GET
/
external
/
products
Listar premios
curl --request GET \
--url https://api.tiendadepuntos.com/external/products \
--header 'x-api-key: <api-key>'import requests
url = "https://api.tiendadepuntos.com/external/products"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tiendadepuntos.com/external/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tiendadepuntos.com/external/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tiendadepuntos.com/external/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tiendadepuntos.com/external/products")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tiendadepuntos.com/external/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 771,
"name": "Café gratis",
"description": "Un café de especialidad a elección.",
"shortDescription": "Café a elección",
"image": "https://tdp-products.s3.amazonaws.com/771.png",
"isEnabled": true,
"stock": {
"controlled": true,
"available": 12
},
"offers": [
{
"productOfferId": 4412,
"points": 500,
"levelId": 3,
"levelName": "Nivel 2"
}
],
"categories": [
{
"id": 7,
"name": "Cafetería"
}
],
"createdAt": "2026-02-14T12:30:00.000Z",
"updatedAt": "2026-06-01T09:15:00.000Z",
"maxPurchases": null
}
],
"meta": {
"totalItems": 128,
"itemCount": 10,
"itemsPerPage": 10,
"totalPages": 13,
"currentPage": 1,
"from": 1,
"to": 10
},
"links": {
"first": "external/products?page=1&limit=10",
"previous": null,
"next": "external/products?page=2&limit=10",
"last": "external/products?page=13&limit=10",
"path": "external/products",
"firstPageUrl": "external/products?page=1&limit=10",
"lastPageUrl": "external/products?page=13&limit=10"
}
}{
"statusCode": 400,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Error de validación",
"errors": [
{}
],
"data": {}
}{
"statusCode": 401,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Api key is invalid",
"errors": [
{}
],
"data": {}
}{
"statusCode": 404,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Client not found",
"errors": [
{}
],
"data": {}
}
