Entregar un canje
curl --request POST \
--url https://api.tiendadepuntos.com/external/purchase/redeem/{code} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.tiendadepuntos.com/external/purchase/redeem/{code}"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tiendadepuntos.com/external/purchase/redeem/{code}', 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/purchase/redeem/{code}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/purchase/redeem/{code}"
req, _ := http.NewRequest("POST", 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.post("https://api.tiendadepuntos.com/external/purchase/redeem/{code}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tiendadepuntos.com/external/purchase/redeem/{code}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"message": "Request was successful",
"data": {
"id": 45012,
"code": "A1B2C3",
"points": 500,
"status": "PENDING",
"createdAt": "2026-07-28T18:05:00.000Z",
"redeemedAt": "2026-07-29T10:12:00.000Z",
"product": {
"id": 771,
"name": "Café gratis",
"points": 500
},
"client": {
"id": 84213,
"firstName": "Juan Manuel",
"lastName": "Pérez",
"email": "juanma@mailinator.com"
}
}
}{
"statusCode": 400,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "El canje ya fue realizado",
"errors": [
{}
],
"data": {}
}{
"statusCode": 404,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Api Key is required",
"errors": [
{}
],
"data": {}
}Canjes
Entregar un canje
Marca el canje como entregado. Es el paso que se ejecuta en el mostrador cuando el cliente presenta su código y se le da el producto.
Antes de llamar acá, usá GET /external/purchase/code/{code} para mostrarle al operador qué producto tiene que entregar.
POST
/
external
/
purchase
/
redeem
/
{code}
Entregar un canje
curl --request POST \
--url https://api.tiendadepuntos.com/external/purchase/redeem/{code} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.tiendadepuntos.com/external/purchase/redeem/{code}"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tiendadepuntos.com/external/purchase/redeem/{code}', 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/purchase/redeem/{code}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/purchase/redeem/{code}"
req, _ := http.NewRequest("POST", 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.post("https://api.tiendadepuntos.com/external/purchase/redeem/{code}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tiendadepuntos.com/external/purchase/redeem/{code}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"message": "Request was successful",
"data": {
"id": 45012,
"code": "A1B2C3",
"points": 500,
"status": "PENDING",
"createdAt": "2026-07-28T18:05:00.000Z",
"redeemedAt": "2026-07-29T10:12:00.000Z",
"product": {
"id": 771,
"name": "Café gratis",
"points": 500
},
"client": {
"id": 84213,
"firstName": "Juan Manuel",
"lastName": "Pérez",
"email": "juanma@mailinator.com"
}
}
}{
"statusCode": 400,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "El canje ya fue realizado",
"errors": [
{}
],
"data": {}
}{
"statusCode": 404,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Api Key is required",
"errors": [
{}
],
"data": {}
}Authorizations
API key del comercio. Se genera desde el panel de Tienda de Puntos, en Configuración → Integraciones.
Headers
ID de la sucursal en la que se registra la operación. Si se omite, la operación queda asociada al comercio sin sucursal.
Example:
1972
Path Parameters
Código del canje que presenta el cliente.
Example:
"A1B2C3"
⌘I

