Crear un cliente
curl --request POST \
--url https://api.tiendadepuntos.com/external/clients \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"firstName": "Juan Manuel",
"lastName": "Pérez",
"email": "juanma@mailinator.com",
"documentNumber": "40100800",
"documentType": "DNI",
"phone": "+541164593678",
"birthday": "1990-01-01",
"gender": 3,
"affiliateCard": "00012345",
"description": "Alta desde el POS de la sucursal Centro.",
"branchId": 1972,
"tagIds": [
4
]
}
'import requests
url = "https://api.tiendadepuntos.com/external/clients"
payload = {
"firstName": "Juan Manuel",
"lastName": "Pérez",
"email": "juanma@mailinator.com",
"documentNumber": "40100800",
"documentType": "DNI",
"phone": "+541164593678",
"birthday": "1990-01-01",
"gender": 3,
"affiliateCard": "00012345",
"description": "Alta desde el POS de la sucursal Centro.",
"branchId": 1972,
"tagIds": [4]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: 'Juan Manuel',
lastName: 'Pérez',
email: 'juanma@mailinator.com',
documentNumber: '40100800',
documentType: 'DNI',
phone: '+541164593678',
birthday: '1990-01-01',
gender: 3,
affiliateCard: '00012345',
description: 'Alta desde el POS de la sucursal Centro.',
branchId: 1972,
tagIds: [4]
})
};
fetch('https://api.tiendadepuntos.com/external/clients', 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/clients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => 'Juan Manuel',
'lastName' => 'Pérez',
'email' => 'juanma@mailinator.com',
'documentNumber' => '40100800',
'documentType' => 'DNI',
'phone' => '+541164593678',
'birthday' => '1990-01-01',
'gender' => 3,
'affiliateCard' => '00012345',
'description' => 'Alta desde el POS de la sucursal Centro.',
'branchId' => 1972,
'tagIds' => [
4
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tiendadepuntos.com/external/clients"
payload := strings.NewReader("{\n \"firstName\": \"Juan Manuel\",\n \"lastName\": \"Pérez\",\n \"email\": \"juanma@mailinator.com\",\n \"documentNumber\": \"40100800\",\n \"documentType\": \"DNI\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"gender\": 3,\n \"affiliateCard\": \"00012345\",\n \"description\": \"Alta desde el POS de la sucursal Centro.\",\n \"branchId\": 1972,\n \"tagIds\": [\n 4\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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/clients")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"Juan Manuel\",\n \"lastName\": \"Pérez\",\n \"email\": \"juanma@mailinator.com\",\n \"documentNumber\": \"40100800\",\n \"documentType\": \"DNI\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"gender\": 3,\n \"affiliateCard\": \"00012345\",\n \"description\": \"Alta desde el POS de la sucursal Centro.\",\n \"branchId\": 1972,\n \"tagIds\": [\n 4\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tiendadepuntos.com/external/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"Juan Manuel\",\n \"lastName\": \"Pérez\",\n \"email\": \"juanma@mailinator.com\",\n \"documentNumber\": \"40100800\",\n \"documentType\": \"DNI\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"gender\": 3,\n \"affiliateCard\": \"00012345\",\n \"description\": \"Alta desde el POS de la sucursal Centro.\",\n \"branchId\": 1972,\n \"tagIds\": [\n 4\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"message": "Request was successful",
"data": {
"id": 84213,
"name": "Juan Manuel Pérez",
"first_name": "Juan Manuel",
"last_name": "Pérez",
"email": "juanma@mailinator.com",
"dni": "40100800",
"document_number": "40100800",
"document_type": "DNI",
"phone": "+541164593678",
"gender": 0,
"affiliate_card": "00012345",
"score": 1250,
"total_score": 8400,
"description": null,
"birthday": "1990-01-01T00:00:00.000Z",
"status": "ACTIVE",
"created_at": "2026-02-14T12:30:00.000Z",
"last_transaction": "2026-07-28T18:05:00.000Z",
"purchases_counter": 7,
"reads_counter": 32,
"level": {
"id": 3,
"name": "Nivel 2"
}
}
}{
"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": {}
}{
"statusCode": 409,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "El cliente ya se encuentra registrado.",
"errors": [
{}
],
"data": {}
}Clientes
Crear un cliente
Da de alta un cliente en el programa de fidelidad del comercio.
Hace falta al menos email o documentNumber: son las claves con las que Tienda de Puntos identifica al cliente dentro del comercio. Si mandás los dos y ya existe un cliente con ese documento y otro email, la llamada falla con 409.
El alta dispara los mismos automatismos que el panel: puntos de bienvenida (si el comercio los tiene configurados), asignación de nivel inicial y email de bienvenida. El nivel se asigna de forma asincrónica, así que la respuesta del alta puede traer level en null.
POST
/
external
/
clients
Crear un cliente
curl --request POST \
--url https://api.tiendadepuntos.com/external/clients \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"firstName": "Juan Manuel",
"lastName": "Pérez",
"email": "juanma@mailinator.com",
"documentNumber": "40100800",
"documentType": "DNI",
"phone": "+541164593678",
"birthday": "1990-01-01",
"gender": 3,
"affiliateCard": "00012345",
"description": "Alta desde el POS de la sucursal Centro.",
"branchId": 1972,
"tagIds": [
4
]
}
'import requests
url = "https://api.tiendadepuntos.com/external/clients"
payload = {
"firstName": "Juan Manuel",
"lastName": "Pérez",
"email": "juanma@mailinator.com",
"documentNumber": "40100800",
"documentType": "DNI",
"phone": "+541164593678",
"birthday": "1990-01-01",
"gender": 3,
"affiliateCard": "00012345",
"description": "Alta desde el POS de la sucursal Centro.",
"branchId": 1972,
"tagIds": [4]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: 'Juan Manuel',
lastName: 'Pérez',
email: 'juanma@mailinator.com',
documentNumber: '40100800',
documentType: 'DNI',
phone: '+541164593678',
birthday: '1990-01-01',
gender: 3,
affiliateCard: '00012345',
description: 'Alta desde el POS de la sucursal Centro.',
branchId: 1972,
tagIds: [4]
})
};
fetch('https://api.tiendadepuntos.com/external/clients', 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/clients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => 'Juan Manuel',
'lastName' => 'Pérez',
'email' => 'juanma@mailinator.com',
'documentNumber' => '40100800',
'documentType' => 'DNI',
'phone' => '+541164593678',
'birthday' => '1990-01-01',
'gender' => 3,
'affiliateCard' => '00012345',
'description' => 'Alta desde el POS de la sucursal Centro.',
'branchId' => 1972,
'tagIds' => [
4
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tiendadepuntos.com/external/clients"
payload := strings.NewReader("{\n \"firstName\": \"Juan Manuel\",\n \"lastName\": \"Pérez\",\n \"email\": \"juanma@mailinator.com\",\n \"documentNumber\": \"40100800\",\n \"documentType\": \"DNI\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"gender\": 3,\n \"affiliateCard\": \"00012345\",\n \"description\": \"Alta desde el POS de la sucursal Centro.\",\n \"branchId\": 1972,\n \"tagIds\": [\n 4\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
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/clients")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"Juan Manuel\",\n \"lastName\": \"Pérez\",\n \"email\": \"juanma@mailinator.com\",\n \"documentNumber\": \"40100800\",\n \"documentType\": \"DNI\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"gender\": 3,\n \"affiliateCard\": \"00012345\",\n \"description\": \"Alta desde el POS de la sucursal Centro.\",\n \"branchId\": 1972,\n \"tagIds\": [\n 4\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tiendadepuntos.com/external/clients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"Juan Manuel\",\n \"lastName\": \"Pérez\",\n \"email\": \"juanma@mailinator.com\",\n \"documentNumber\": \"40100800\",\n \"documentType\": \"DNI\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"gender\": 3,\n \"affiliateCard\": \"00012345\",\n \"description\": \"Alta desde el POS de la sucursal Centro.\",\n \"branchId\": 1972,\n \"tagIds\": [\n 4\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"message": "Request was successful",
"data": {
"id": 84213,
"name": "Juan Manuel Pérez",
"first_name": "Juan Manuel",
"last_name": "Pérez",
"email": "juanma@mailinator.com",
"dni": "40100800",
"document_number": "40100800",
"document_type": "DNI",
"phone": "+541164593678",
"gender": 0,
"affiliate_card": "00012345",
"score": 1250,
"total_score": 8400,
"description": null,
"birthday": "1990-01-01T00:00:00.000Z",
"status": "ACTIVE",
"created_at": "2026-02-14T12:30:00.000Z",
"last_transaction": "2026-07-28T18:05:00.000Z",
"purchases_counter": 7,
"reads_counter": 32,
"level": {
"id": 3,
"name": "Nivel 2"
}
}
}{
"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": {}
}{
"statusCode": 409,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "El cliente ya se encuentra registrado.",
"errors": [
{}
],
"data": {}
}Authorizations
Headers
Body
application/json

