curl --request POST \
--url https://api.tiendadepuntos.com/external/operators \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"firstName": "Ana",
"lastName": "Gómez",
"email": "ana@micomercio.com",
"password": "unaClaveSegura123",
"documentNumber": "40100800",
"phone": "+541164593678",
"birthday": "1990-01-01",
"branches": [
{
"branchId": 1972,
"permissionGroupId": 12
}
]
}
'import requests
url = "https://api.tiendadepuntos.com/external/operators"
payload = {
"firstName": "Ana",
"lastName": "Gómez",
"email": "ana@micomercio.com",
"password": "unaClaveSegura123",
"documentNumber": "40100800",
"phone": "+541164593678",
"birthday": "1990-01-01",
"branches": [
{
"branchId": 1972,
"permissionGroupId": 12
}
]
}
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: 'Ana',
lastName: 'Gómez',
email: 'ana@micomercio.com',
password: 'unaClaveSegura123',
documentNumber: '40100800',
phone: '+541164593678',
birthday: '1990-01-01',
branches: [{branchId: 1972, permissionGroupId: 12}]
})
};
fetch('https://api.tiendadepuntos.com/external/operators', 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/operators",
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' => 'Ana',
'lastName' => 'Gómez',
'email' => 'ana@micomercio.com',
'password' => 'unaClaveSegura123',
'documentNumber' => '40100800',
'phone' => '+541164593678',
'birthday' => '1990-01-01',
'branches' => [
[
'branchId' => 1972,
'permissionGroupId' => 12
]
]
]),
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/operators"
payload := strings.NewReader("{\n \"firstName\": \"Ana\",\n \"lastName\": \"Gómez\",\n \"email\": \"ana@micomercio.com\",\n \"password\": \"unaClaveSegura123\",\n \"documentNumber\": \"40100800\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"branches\": [\n {\n \"branchId\": 1972,\n \"permissionGroupId\": 12\n }\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/operators")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"Ana\",\n \"lastName\": \"Gómez\",\n \"email\": \"ana@micomercio.com\",\n \"password\": \"unaClaveSegura123\",\n \"documentNumber\": \"40100800\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"branches\": [\n {\n \"branchId\": 1972,\n \"permissionGroupId\": 12\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tiendadepuntos.com/external/operators")
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\": \"Ana\",\n \"lastName\": \"Gómez\",\n \"email\": \"ana@micomercio.com\",\n \"password\": \"unaClaveSegura123\",\n \"documentNumber\": \"40100800\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"branches\": [\n {\n \"branchId\": 1972,\n \"permissionGroupId\": 12\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"message": "Request was successful",
"data": {
"id": 3312,
"role": "operator",
"firstName": "Ana",
"lastName": "Gómez",
"fullName": "Ana Gómez",
"email": "ana@micomercio.com",
"documentNumber": "40100800",
"phone": "+541164593678",
"birthday": "1990-01-01T00:00:00.000Z",
"hasCompletedOnboarding": false,
"branches": [
{
"branchId": 1972,
"branchName": "Sucursal Centro",
"permissionGroupId": 12,
"permissionGroupName": "Cajeros"
}
],
"createdAt": "2026-02-14T12:30:00.000Z",
"updatedAt": "2026-06-01T09:15:00.000Z"
}
}{
"statusCode": 400,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Error de validación",
"errors": [
{}
],
"data": {}
}{
"statusCode": 404,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Api Key is required",
"errors": [
{}
],
"data": {}
}{
"statusCode": 409,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "El email ya se encuentra en uso.",
"errors": [
{}
],
"data": {}
}Crear un operador
Crea un operador del comercio con rol operator.
Si mandás password, el operador ya puede ingresar al panel; si la omitís, recibe un email para definirla.
El comercio puede tener un tope de operadores según su plan: si está alcanzado, la llamada devuelve 400.
curl --request POST \
--url https://api.tiendadepuntos.com/external/operators \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"firstName": "Ana",
"lastName": "Gómez",
"email": "ana@micomercio.com",
"password": "unaClaveSegura123",
"documentNumber": "40100800",
"phone": "+541164593678",
"birthday": "1990-01-01",
"branches": [
{
"branchId": 1972,
"permissionGroupId": 12
}
]
}
'import requests
url = "https://api.tiendadepuntos.com/external/operators"
payload = {
"firstName": "Ana",
"lastName": "Gómez",
"email": "ana@micomercio.com",
"password": "unaClaveSegura123",
"documentNumber": "40100800",
"phone": "+541164593678",
"birthday": "1990-01-01",
"branches": [
{
"branchId": 1972,
"permissionGroupId": 12
}
]
}
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: 'Ana',
lastName: 'Gómez',
email: 'ana@micomercio.com',
password: 'unaClaveSegura123',
documentNumber: '40100800',
phone: '+541164593678',
birthday: '1990-01-01',
branches: [{branchId: 1972, permissionGroupId: 12}]
})
};
fetch('https://api.tiendadepuntos.com/external/operators', 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/operators",
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' => 'Ana',
'lastName' => 'Gómez',
'email' => 'ana@micomercio.com',
'password' => 'unaClaveSegura123',
'documentNumber' => '40100800',
'phone' => '+541164593678',
'birthday' => '1990-01-01',
'branches' => [
[
'branchId' => 1972,
'permissionGroupId' => 12
]
]
]),
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/operators"
payload := strings.NewReader("{\n \"firstName\": \"Ana\",\n \"lastName\": \"Gómez\",\n \"email\": \"ana@micomercio.com\",\n \"password\": \"unaClaveSegura123\",\n \"documentNumber\": \"40100800\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"branches\": [\n {\n \"branchId\": 1972,\n \"permissionGroupId\": 12\n }\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/operators")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"Ana\",\n \"lastName\": \"Gómez\",\n \"email\": \"ana@micomercio.com\",\n \"password\": \"unaClaveSegura123\",\n \"documentNumber\": \"40100800\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"branches\": [\n {\n \"branchId\": 1972,\n \"permissionGroupId\": 12\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tiendadepuntos.com/external/operators")
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\": \"Ana\",\n \"lastName\": \"Gómez\",\n \"email\": \"ana@micomercio.com\",\n \"password\": \"unaClaveSegura123\",\n \"documentNumber\": \"40100800\",\n \"phone\": \"+541164593678\",\n \"birthday\": \"1990-01-01\",\n \"branches\": [\n {\n \"branchId\": 1972,\n \"permissionGroupId\": 12\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": 201,
"message": "Request was successful",
"data": {
"id": 3312,
"role": "operator",
"firstName": "Ana",
"lastName": "Gómez",
"fullName": "Ana Gómez",
"email": "ana@micomercio.com",
"documentNumber": "40100800",
"phone": "+541164593678",
"birthday": "1990-01-01T00:00:00.000Z",
"hasCompletedOnboarding": false,
"branches": [
{
"branchId": 1972,
"branchName": "Sucursal Centro",
"permissionGroupId": 12,
"permissionGroupName": "Cajeros"
}
],
"createdAt": "2026-02-14T12:30:00.000Z",
"updatedAt": "2026-06-01T09:15:00.000Z"
}
}{
"statusCode": 400,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Error de validación",
"errors": [
{}
],
"data": {}
}{
"statusCode": 404,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "Api Key is required",
"errors": [
{}
],
"data": {}
}{
"statusCode": 409,
"timestamp": "2026-07-31T14:05:12.431Z",
"path": "/external/tags/add",
"method": "POST",
"message": "El email ya se encuentra en uso.",
"errors": [
{}
],
"data": {}
}Authorizations
API key del comercio. Se genera desde el panel de Tienda de Puntos, en Configuración → Integraciones.
Body
Nombre del operador.
"Ana"
Apellido del operador.
"Gómez"
Email con el que va a ingresar al panel. Tiene que estar libre dentro del comercio.
"ana@micomercio.com"
Contraseña inicial. Si se omite, el operador recibe un email para definirla él mismo.
8"unaClaveSegura123"
Número de documento.
"40100800"
Teléfono.
"+541164593678"
Fecha de nacimiento en ISO 8601.
"1990-01-01"
Sucursales y permisos del operador. Si se omite, el operador queda creado sin asignaciones y no puede operar hasta que se le asigne una desde el panel.
Show child attributes
Show child attributes

