Get Account Activity
curl --request GET \
--url https://api.stage.localpayment.com/api/accounts/{accountNumber}/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/accounts/{accountNumber}/activity"
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/accounts/{accountNumber}/activity', 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/accounts/{accountNumber}/activity",
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/accounts/{accountNumber}/activity"
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/accounts/{accountNumber}/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/accounts/{accountNumber}/activity")
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{
"openingBalance": 70270,
"closingBalance": 32342,
"size": 7,
"page": 1,
"details": [
{
"createdAt": "2024-11-13T20:26:10.114",
"processedAt": "2024-11-13T20:29:19.60419",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "34dbc750-4465-4442-b59d-de0382885bb5",
"externalId": "be9c8a63-7c40-4027-8473-c17ff4fe6711",
"transactionType": "PayIn",
"status": "COMPLETED",
"description": "The payin was credited",
"paymentCurrency": "CLP",
"paymentAmount": 12,
"fxQuote": 979.988311,
"confirmedCurrency": "CLP",
"confirmedAmount": 12,
"feesCurrency": "CLP",
"feesAmount": 0,
"localTaxesCurrency": "CLP",
"localTaxesAmount": 0,
"withholdingsCurrency": "CLP",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": 12,
"closingBalance": 70282,
"statusCode": "200"
},
{
"createdAt": "2024-11-14T17:12:10.713022",
"processedAt": "2024-11-14T17:12:10.712988",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "d21c8e42-79b2-4098-aec7-a7c48b0b1351",
"externalId": "N/A",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "CLP",
"paymentAmount": 50000,
"fxQuote": 1021,
"confirmedCurrency": "CLP",
"confirmedAmount": -50000,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": -50000,
"closingBalance": 20282,
"statusCode": "200"
},
{
"createdAt": "2024-11-14T17:18:31.995231",
"processedAt": "2024-11-14T17:18:31.994611",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "a72bf18d-8754-42ac-9546-6c0c643dff60",
"externalId": "N/A",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "USD",
"paymentAmount": 30,
"fxQuote": 962,
"confirmedCurrency": "CLP",
"confirmedAmount": 28860,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": 28860,
"closingBalance": 49142,
"statusCode": "200"
},
{
"createdAt": "2024-11-19T19:46:28.015306",
"processedAt": "2024-11-19T19:46:28.015259",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "89f2938c-1a0f-482d-8201-1e8c689371de",
"externalId": "N/A",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "CLP",
"paymentAmount": 12566,
"fxQuote": 1010.11,
"confirmedCurrency": "CLP",
"confirmedAmount": -12566,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": -12566,
"closingBalance": 36576,
"statusCode": "200"
},
{
"createdAt": "2024-11-19T19:59:56.882873",
"processedAt": "2024-11-19T19:59:56.882126",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "ac657756-f1db-49ef-a00e-52ee351dd1d7",
"externalId": "CE-EXT",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "CLP",
"paymentAmount": 1269,
"fxQuote": 1010.110656,
"confirmedCurrency": "CLP",
"confirmedAmount": -1269,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": -1269,
"closingBalance": 35307,
"statusCode": "200"
},
{
"createdAt": "2024-11-19T21:02:03.763224",
"processedAt": "2024-11-19T21:02:03.762882",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "f988f901-f4d3-4873-9150-3250e3389f47",
"externalId": "N/A",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "CLP",
"paymentAmount": 5965,
"fxQuote": 1010.14,
"confirmedCurrency": "CLP",
"confirmedAmount": -5965,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": -5965,
"closingBalance": 29342,
"statusCode": "200"
},
{
"createdAt": "2024-12-05T15:34:56.259",
"processedAt": "2024-12-05T15:36:31.589376",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "0a78683f-1e3d-4fe0-ae1e-83dcdfd161cd",
"externalId": "Autogenerated-ID-1733412895187",
"transactionType": "PayIn",
"status": "COMPLETED",
"description": "The payin was credited",
"paymentCurrency": "CLP",
"paymentAmount": 3000,
"fxQuote": 970.846843,
"confirmedCurrency": "CLP",
"confirmedAmount": 3000,
"feesCurrency": "CLP",
"feesAmount": 0,
"localTaxesCurrency": "CLP",
"localTaxesAmount": 0,
"withholdingsCurrency": "CLP",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": 3000,
"closingBalance": 32342,
"statusCode": "200"
}
]
}{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}Reports
Get Account Activity
GET
/
api
/
accounts
/
{accountNumber}
/
activity
Get Account Activity
curl --request GET \
--url https://api.stage.localpayment.com/api/accounts/{accountNumber}/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.stage.localpayment.com/api/accounts/{accountNumber}/activity"
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/accounts/{accountNumber}/activity', 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/accounts/{accountNumber}/activity",
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/accounts/{accountNumber}/activity"
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/accounts/{accountNumber}/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stage.localpayment.com/api/accounts/{accountNumber}/activity")
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{
"openingBalance": 70270,
"closingBalance": 32342,
"size": 7,
"page": 1,
"details": [
{
"createdAt": "2024-11-13T20:26:10.114",
"processedAt": "2024-11-13T20:29:19.60419",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "34dbc750-4465-4442-b59d-de0382885bb5",
"externalId": "be9c8a63-7c40-4027-8473-c17ff4fe6711",
"transactionType": "PayIn",
"status": "COMPLETED",
"description": "The payin was credited",
"paymentCurrency": "CLP",
"paymentAmount": 12,
"fxQuote": 979.988311,
"confirmedCurrency": "CLP",
"confirmedAmount": 12,
"feesCurrency": "CLP",
"feesAmount": 0,
"localTaxesCurrency": "CLP",
"localTaxesAmount": 0,
"withholdingsCurrency": "CLP",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": 12,
"closingBalance": 70282,
"statusCode": "200"
},
{
"createdAt": "2024-11-14T17:12:10.713022",
"processedAt": "2024-11-14T17:12:10.712988",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "d21c8e42-79b2-4098-aec7-a7c48b0b1351",
"externalId": "N/A",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "CLP",
"paymentAmount": 50000,
"fxQuote": 1021,
"confirmedCurrency": "CLP",
"confirmedAmount": -50000,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": -50000,
"closingBalance": 20282,
"statusCode": "200"
},
{
"createdAt": "2024-11-14T17:18:31.995231",
"processedAt": "2024-11-14T17:18:31.994611",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "a72bf18d-8754-42ac-9546-6c0c643dff60",
"externalId": "N/A",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "USD",
"paymentAmount": 30,
"fxQuote": 962,
"confirmedCurrency": "CLP",
"confirmedAmount": 28860,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": 28860,
"closingBalance": 49142,
"statusCode": "200"
},
{
"createdAt": "2024-11-19T19:46:28.015306",
"processedAt": "2024-11-19T19:46:28.015259",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "89f2938c-1a0f-482d-8201-1e8c689371de",
"externalId": "N/A",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "CLP",
"paymentAmount": 12566,
"fxQuote": 1010.11,
"confirmedCurrency": "CLP",
"confirmedAmount": -12566,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": -12566,
"closingBalance": 36576,
"statusCode": "200"
},
{
"createdAt": "2024-11-19T19:59:56.882873",
"processedAt": "2024-11-19T19:59:56.882126",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "ac657756-f1db-49ef-a00e-52ee351dd1d7",
"externalId": "CE-EXT",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "CLP",
"paymentAmount": 1269,
"fxQuote": 1010.110656,
"confirmedCurrency": "CLP",
"confirmedAmount": -1269,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": -1269,
"closingBalance": 35307,
"statusCode": "200"
},
{
"createdAt": "2024-11-19T21:02:03.763224",
"processedAt": "2024-11-19T21:02:03.762882",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "f988f901-f4d3-4873-9150-3250e3389f47",
"externalId": "N/A",
"transactionType": "CurrencyExchange",
"status": "COMPLETED",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "CLP",
"paymentAmount": 5965,
"fxQuote": 1010.14,
"confirmedCurrency": "CLP",
"confirmedAmount": -5965,
"feesCurrency": "",
"feesAmount": 0,
"localTaxesCurrency": "",
"localTaxesAmount": 0,
"withholdingsCurrency": "",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": -5965,
"closingBalance": 29342,
"statusCode": "200"
},
{
"createdAt": "2024-12-05T15:34:56.259",
"processedAt": "2024-12-05T15:36:31.589376",
"entityCode": "0001",
"accountNumber": "{{accountNumber}}",
"internalId": "0a78683f-1e3d-4fe0-ae1e-83dcdfd161cd",
"externalId": "Autogenerated-ID-1733412895187",
"transactionType": "PayIn",
"status": "COMPLETED",
"description": "The payin was credited",
"paymentCurrency": "CLP",
"paymentAmount": 3000,
"fxQuote": 970.846843,
"confirmedCurrency": "CLP",
"confirmedAmount": 3000,
"feesCurrency": "CLP",
"feesAmount": 0,
"localTaxesCurrency": "CLP",
"localTaxesAmount": 0,
"withholdingsCurrency": "CLP",
"withholdingsAmount": 0,
"accountCurrency": "CLP",
"accountAmount": 3000,
"closingBalance": 32342,
"statusCode": "200"
}
]
}{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}Generate a comprehensive transaction report for any Localpayment account. The report includes all transaction details—type, status, amounts, fees, and taxes—along with the period’s opening and closing balances.
Authorizations
Headers
Bearer access token for authentication. This token is obtained from the Get Access Token or Refresh Access Token endpoints.
Last modified on November 10, 2026

