Iniciar sesión
curl --request POST \
--url https://sandbox-rampa.mesadepagos.com/api/v2/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "partner@example.com",
"password": "secret123"
}
'import requests
url = "https://sandbox-rampa.mesadepagos.com/api/v2/auth/login"
payload = {
"email": "partner@example.com",
"password": "secret123"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'partner@example.com', password: 'secret123'})
};
fetch('https://sandbox-rampa.mesadepagos.com/api/v2/auth/login', 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://sandbox-rampa.mesadepagos.com/api/v2/auth/login",
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([
'email' => 'partner@example.com',
'password' => 'secret123'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://sandbox-rampa.mesadepagos.com/api/v2/auth/login"
payload := strings.NewReader("{\n \"email\": \"partner@example.com\",\n \"password\": \"secret123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://sandbox-rampa.mesadepagos.com/api/v2/auth/login")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"partner@example.com\",\n \"password\": \"secret123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-rampa.mesadepagos.com/api/v2/auth/login")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"partner@example.com\",\n \"password\": \"secret123\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "partner@example.com",
"status": "ACTIVE",
"name": "Partner User",
"role": "tenant",
"completedOnboardingSteps": [
"business_info",
"bank_details"
]
},
"message": "Login successful"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized"
}Auth
Iniciar sesión
Autentica un usuario partner y devuelve un JWT para consumir endpoints protegidos.
POST
/
v2
/
auth
/
login
Iniciar sesión
curl --request POST \
--url https://sandbox-rampa.mesadepagos.com/api/v2/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "partner@example.com",
"password": "secret123"
}
'import requests
url = "https://sandbox-rampa.mesadepagos.com/api/v2/auth/login"
payload = {
"email": "partner@example.com",
"password": "secret123"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'partner@example.com', password: 'secret123'})
};
fetch('https://sandbox-rampa.mesadepagos.com/api/v2/auth/login', 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://sandbox-rampa.mesadepagos.com/api/v2/auth/login",
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([
'email' => 'partner@example.com',
'password' => 'secret123'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://sandbox-rampa.mesadepagos.com/api/v2/auth/login"
payload := strings.NewReader("{\n \"email\": \"partner@example.com\",\n \"password\": \"secret123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://sandbox-rampa.mesadepagos.com/api/v2/auth/login")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"partner@example.com\",\n \"password\": \"secret123\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-rampa.mesadepagos.com/api/v2/auth/login")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"partner@example.com\",\n \"password\": \"secret123\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"user": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "partner@example.com",
"status": "ACTIVE",
"name": "Partner User",
"role": "tenant",
"completedOnboardingSteps": [
"business_info",
"bank_details"
]
},
"message": "Login successful"
}{
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized"
}Body
application/json
Credenciales del usuario partner.
Response
Login exitoso.
Indica si el login fue exitoso.
Example:
true
Token JWT que debe enviarse como Bearer token.
Example:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Información básica del usuario autenticado.
Show child attributes
Show child attributes
Mensaje de resultado.
Example:
"Login successful"
⌘I