Ottenere la cronologia degli stati
curl --request GET \
--url https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history', 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.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"fromStatus": "PENDING_KYC",
"toStatus": "IN_REVIEW",
"reason": "Review started",
"changedBy": "12345",
"correlationId": "b68165b9-1d60-4f9d-9919-7fee12411714",
"createdAt": "2024-01-15T17:03:15Z"
},
{
"fromStatus": "IN_REVIEW",
"toStatus": "ACTIVE",
"reason": "KYC approved",
"changedBy": "67890",
"correlationId": "b07a3416-11fb-48d8-8671-be471694f0a2",
"createdAt": "2024-01-15T17:03:22Z"
}
]{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Missing or invalid access token.",
"instance": "/api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/status-history",
"code": "UNAUTHORIZED",
"correlationId": "0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10",
"details": []
}{
"type": "about:blank",
"title": "Not found",
"status": 404,
"detail": "The entity does not exist or belongs to another merchant.",
"instance": "/api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/status-history",
"code": "ENTITY_NOT_FOUND",
"correlationId": "0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10",
"details": []
}Entità
Ottenere la cronologia degli stati
GET
/
api
/
entity
/
v1
/
entities
/
{entityId}
/
status-history
Ottenere la cronologia degli stati
curl --request GET \
--url https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history', 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.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/entity/v1/entities/{entityId}/status-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"fromStatus": "PENDING_KYC",
"toStatus": "IN_REVIEW",
"reason": "Review started",
"changedBy": "12345",
"correlationId": "b68165b9-1d60-4f9d-9919-7fee12411714",
"createdAt": "2024-01-15T17:03:15Z"
},
{
"fromStatus": "IN_REVIEW",
"toStatus": "ACTIVE",
"reason": "KYC approved",
"changedBy": "67890",
"correlationId": "b07a3416-11fb-48d8-8671-be471694f0a2",
"createdAt": "2024-01-15T17:03:22Z"
}
]{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Missing or invalid access token.",
"instance": "/api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/status-history",
"code": "UNAUTHORIZED",
"correlationId": "0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10",
"details": []
}{
"type": "about:blank",
"title": "Not found",
"status": 404,
"detail": "The entity does not exist or belongs to another merchant.",
"instance": "/api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526/status-history",
"code": "ENTITY_NOT_FOUND",
"correlationId": "0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10",
"details": []
}Restituisce la cronologia delle transizioni di stato dell’entità, con l’autore, il motivo e l’ID di correlazione di ogni modifica.
- Le voci sono ordinate cronologicamente.
- Le transizioni eseguite da Localpayment (IN_REVIEW, ACTIVE, REJECTED, BLOCKED e il ritorno a PENDING_KYC per le correzioni) compaiono qui con il relativo motivo.
application/problem+json con un code stabile. Catalogo completo: Stati delle entità e codici di errore.Autorizzazioni
Intestazioni
Token di accesso Bearer per l'autenticazione. Questo token si ottiene dagli endpoint Ottenere il token di accesso o Rinnovare il token di accesso. Da esso vengono ricavati il tuo conto esercente e l'utente che esegue l'operazione.
Esempio:
"Bearer <your_access_token>"
Parametri del percorso
Risposta
OK.
Ultima modifica il 22 novembre 2026

